3 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
4 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
10 set(CMAKE_BUILD_TYPE TRUE)
14 find_package(Qt4 REQUIRED)
15 find_package(ZLIB REQUIRED)
19 find_package(ICONV REQUIRED)
26 find_package(ASPELL REQUIRED)
34 add_definitions(-DENABLE_NLS=1 -DHAVE_ICONV=1)
35 message("----- Building with ENABLE_NLS and HAVE_ICONV")
37 message("----- No iconv found, to get more information use -Dnls=1")
40 add_definitions(-DUSE_ASPELL=1)
41 message("----- Building with USE_ASPELL")
43 message("----- No aspell, to get more information use -Daspell=1")
49 include(ConfigureChecks.cmake)
50 configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h )
56 add_definitions(-DBOOST_USER_CONFIG=<\;config.h>\;)
58 add_definitions(-DBOOST_USER_CONFIG="<config.h>")
59 SET(CMAKE_EXE_LINKER_FLAGS /MANIFEST)
62 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Zi -wd4996 -wd4800" CACHE STRING "runtime-library flags" FORCE)
63 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -wd4996 -wd4800" CACHE STRING "runtime-library flags" FORCE)
64 SET(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
65 SET(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
67 add_definitions(-DBOOST_USER_CONFIG="<config.h>")
79 add_subdirectory(boost)
80 add_subdirectory(intl)