3 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
4 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
9 find_package(Qt4 REQUIRED)
10 find_package(ZLIB REQUIRED)
14 find_package(ICONV REQUIRED)
21 find_package(ASPELL REQUIRED)
29 add_definitions(-DENABLE_NLS=1 -DHAVE_ICONV=1)
30 message("----- Building with ENABLE_NLS and HAVE_ICONV")
32 message("----- No iconv found, to get more information use -Dnls=1")
35 add_definitions(-DUSE_ASPELL=1)
36 message("----- Building with USE_ASPELL")
38 message("----- No aspell, to get more information use -Daspell=1")
44 include(ConfigureChecks.cmake)
45 configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h )
51 add_definitions(-DBOOST_USER_CONFIG=<\;config.h>\;)
53 add_definitions(-DBOOST_USER_CONFIG="<config.h>")
54 SET(CMAKE_EXE_LINKER_FLAGS /MANIFEST)
57 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Zi -wd4996 -wd4800" CACHE STRING "runtime-library flags" FORCE)
58 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -wd4996 -wd4800" CACHE STRING "runtime-library flags" FORCE)
59 SET(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
60 SET(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
62 add_definitions(-DBOOST_USER_CONFIG="<config.h>")
74 add_subdirectory(boost)
75 add_subdirectory(intl)