## 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)
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)
)
MARK_AS_ADVANCED(
+ Boost_INCLUDE_DIR
+ Boost_LIBRARIES
+)
+
+MARK_AS_ADVANCED(
SDLMAIN_LIBRARY
SDL_INCLUDE_DIR
SDL_LIBRARY