Initial CMake bullshit

This commit is contained in:
sippeangelo
2015-11-24 10:36:49 +01:00
parent 381e0fbbab
commit 059dee76ed
3 changed files with 202 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
project(Tests)
find_package(Boost REQUIRED COMPONENTS chrono thread unit_test_framework)
include_directories(
${CMAKE_SOURCE_DIR}/include
${Boost_INCLUDE_DIRS}
)
file(GLOB SOURCE_FILES
"*.cpp"
)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
add_executable(Tests ${SOURCE_FILES})
target_link_libraries(Tests
Engine
Game
${Boost_LIBRARIES}
)