-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
35 lines (28 loc) · 948 Bytes
/
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
PROJECT(uct_bots)
cmake_minimum_required(VERSION 2.4)
#libraries
ADD_LIBRARY(board
uct.cpp player.cpp utils.cpp
boardc4.cpp boardc5.cpp boardblocks.cpp boardothello.cpp boardmatches.cpp
boardawale.cpp board.cpp)
#tests
ADD_EXECUTABLE(test_nested test_nested.cpp)
ADD_EXECUTABLE(test_board test_board.cpp)
TARGET_LINK_LIBRARIES(test_board board)
ADD_EXECUTABLE(test_uct test_uct.cpp)
TARGET_LINK_LIBRARIES(test_uct board)
#production
ADD_EXECUTABLE(bot_bot bot_bot.cpp)
TARGET_LINK_LIBRARIES(bot_bot board)
ADD_EXECUTABLE(human_bot human_bot.cpp)
TARGET_LINK_LIBRARIES(human_bot board)
#gui
FIND_PACKAGE(Qt4)
IF(QT_FOUND)
INCLUDE(${QT_USE_FILE})
SET(SRCS qboardc4.cpp qgamethread.cpp qgamewindow.cpp)
SET(HDRS qboardc4.h qgamethread.h qgamewindow.h)
QT4_WRAP_CPP(MOC_SRCS ${HDRS})
ADD_EXECUTABLE(bot_bot_gui bot_bot_gui.cpp ${MOC_SRCS} ${SRCS})
TARGET_LINK_LIBRARIES(bot_bot_gui board ${QT_LIBRARIES})
ENDIF(QT_FOUND)