Skip to content
Snippets Groups Projects
Commit 478e97cc authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMake: modernize

parent 645743fa
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,12 @@ if(MSVC) ...@@ -6,11 +6,12 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_LINKED_AS_SHARED_LIBRARY=1") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_LINKED_AS_SHARED_LIBRARY=1")
endif() endif()
include_directories(${CMAKE_SOURCE_DIR}/Tests/UnitTests/utilities)
file(GLOB source_files "*.cpp" ${CMAKE_SOURCE_DIR}/Tests/GTestWrapper/TestAll.cpp) file(GLOB source_files "*.cpp" ${CMAKE_SOURCE_DIR}/Tests/GTestWrapper/TestAll.cpp)
add_executable(${test} ${source_files}) add_executable(${test} ${source_files})
target_include_directories(${test} PUBLIC
${CMAKE_SOURCE_DIR}/ThirdParty/common/gtest/gtest-1.8.0/include
${CMAKE_SOURCE_DIR}/Tests/UnitTests/utilities)
target_link_libraries(${test} ${BornAgainCore_LIBRARY} gtest) target_link_libraries(${test} ${BornAgainCore_LIBRARY} gtest)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(${test} PUBLIC "-Wno-deprecated-copy") target_compile_options(${test} PUBLIC "-Wno-deprecated-copy")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment