-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (32 loc) · 1.72 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.2)
project(efg_solve)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fsanitize=address")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2")
set(SOURCE_FILES
src/solvers/game_solver.cpp src/solvers/game_solver.h
src/games/game.h src/games/game.cpp
src/games/coin.cpp src/games/coin.h
src/solvers/egt.cpp src/solvers/egt.h
src/solvers/cfr.cpp src/solvers/cfr.h
src/solvers/prox.h
src/solvers/dilated_entropy.cpp src/solvers/dilated_entropy.h
src/config.cpp src/config.h
src/supportcode/vector_calculus.cpp src/supportcode/vector_calculus.h
src/supportcode/stringfunctions.cpp src/supportcode/stringfunctions.h
src/games/leduc.cpp src/games/leduc.h
src/games/game_reader.cpp src/games/game_reader.cpp
src/games/game_tree.cpp src/games/game_tree.h
src/games/strategy_io.cpp src/games/strategy_io.h
src/supportcode/filewriter.cpp src/supportcode/filewriter.h)
add_executable(efg_solve ${SOURCE_FILES} src/main.cpp)
#set(GTEST /Users/ckroer/install/c++/googletest/googletest/)
#include_directories(${GTEST}/include ${GTEST})
enable_testing()
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
set(TEST_FILES ${SOURCE_FILES} test/game_test.cpp test/dilated_entropy_test.cpp test/egt_test.cpp test/game_reader_test.cpp test/strategy_io_test.cpp test/game_tree_test.cpp)
add_executable(efg_test ${TEST_FILES})
target_link_libraries(efg_test ${GTEST_BOTH_LIBRARIES})
add_test(efg_test game_test game_reader_test)
#target_link_libraries(game_test ${GTEST}/lib/libgtest.a ${GTEST}/lib/libgtest_main.a)