From: Tim Goya Date: Sun, 13 Dec 2009 23:38:28 +0000 (+0000) Subject: add Boost to CMake X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a9c846efec55918b3e6ded6a0e8346137e53f739;p=supertux.git add Boost to CMake SVN-Revision: 6210 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 10b3e9684..2657d9f8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,10 @@ TEST_BIG_ENDIAN(WORDS_BIGENDIAN) ## Add lots of dependencies to compiler switches +FIND_PACKAGE(Boost REQUIRED) +INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) +LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) + FIND_PACKAGE(SDL REQUIRED) INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR}) SET(HAVE_SDL TRUE) @@ -187,9 +191,9 @@ OPTION(WARNINGS "Enable long list of warnings for compiler to check" ON) IF(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") - SET(CMAKE_CXX_FLAGS_PROFILE "-pg") - SET(CMAKE_C_FLAGS_PROFILE "-pg") - SET(CMAKE_LD_FLAGS_PROFILE "-pg") + SET(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_DEBUG} -pg") + SET(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_DEBUG} -pg") + SET(CMAKE_LD_FLAGS_PROFILE "${CMAKE_LD_FLAGS_DEBUG} -pg") ADD_DEFINITIONS(-Wall -Wextra -funit-at-a-time) IF(WERROR) ADD_DEFINITIONS(-Werror) @@ -446,6 +450,11 @@ MARK_AS_ADVANCED( ) MARK_AS_ADVANCED( + Boost_INCLUDE_DIR + Boost_LIBRARIES +) + +MARK_AS_ADVANCED( SDLMAIN_LIBRARY SDL_INCLUDE_DIR SDL_LIBRARY