Added FindShlwapi.cmake in lieu of pragma comment() in fileref.h.

This commit is contained in:
Festus Hagen
2013-05-25 01:51:26 -04:00
parent 54fbe15611
commit b3f3eeeec7
4 changed files with 32 additions and 4 deletions

10
ConfigureChecks.cmake Normal file → Executable file
View File

@ -218,6 +218,16 @@ endif()
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
if(WIN32)
find_package(SHLWAPI)
if(SHLWAPI_FOUND)
set(HAVE_SHLWAPI 1)
else()
set(HAVE_SHLWAPI 0)
endif()
endif()
find_package(CppUnit)
if(NOT CppUnit_FOUND AND BUILD_TESTS)
message(STATUS "CppUnit not found, disabling tests.")