-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
51 lines (42 loc) · 1.37 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
45
46
47
48
49
50
51
##################################################
#
# CMakeLists.txt - Root cmake file for RobotFish
#
# History:
# * Original file - Dan Swain, 7/6/10
# * Simplied significantly - DTS 7/14/10
# * Modified from SimpleBWTracker - DTS 8/26/10
# * Modified from KilliTracker - DTS 9/10/10
# * Modified from BelugaTracker - DTS 12/1/10
#
##################################################
# this is the most recent version of CMake
cmake_minimum_required (VERSION 2.8)
# name of the project - this has to come first
project(RobotFish)
# MADTRaC information
set(MT_ROOT "../MADTraC/build" CACHE PATH "MADTraC root directory")
# sets variables related to MT
include(${MT_ROOT}/cmake/MT_Config.cmake)
option(WITH_SERVER "Build with server module" OFF)
if(WITH_SERVER)
add_definitions("-DWITH_SERVER")
endif(WITH_SERVER)
# set the name of the built target
set(APP_NAME Predator)
# set this to a list of source and header files to be compiled
set(APP_SRC
src/PredatorGUI.cpp
src/PredatorGUI.h
src/PredatorTracker.cpp
src/PredatorTracker.h
src/PredatorServer.cpp
src/PredatorServer.h
src/PredatorRobot.cpp
src/PredatorRobot.h)
# adds src to the header search path
include_directories(src)
# sets up the build target
add_executable(${APP_NAME} WIN32 MACOSX_BUNDLE ${APP_SRC})
# sets up the app to build correctly using the right libraries, etc
MT_robot_app(${APP_NAME})