forked from mhernando/Apolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (44 loc) · 2.04 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
52
53
54
55
56
57
58
cmake_minimum_required (VERSION 2.6)
FIND_PACKAGE(wxWidgets COMPONENTS base core gl net aui adv)
IF(wxWidgets_FOUND)
INCLUDE(${wxWidgets_USE_FILE})
IF(WIN32)
INCLUDE_DIRECTORIES(C:/mrcore/include/mrcore)
LINK_DIRECTORIES(C:/mrcore/lib)
ELSE(WIN32)
INCLUDE_DIRECTORIES(/usr/local/mrcore/include/mrcore)
LINK_DIRECTORIES(/usr/local/mrcore/lib)
ENDIF(WIN32)
IF(WIN32)
SET(RESOURCES "apolo.rc")
ELSE(WIN32)
SET(RESOURCES "")
ENDIF(WIN32)
ADD_EXECUTABLE(APOLO canvas.cpp childView.cpp genericSliderProperties.cpp mainWindow.cpp genericSlider.cpp apolo.cpp
wheeledBasePanel.cpp nodeTree.cpp changeLocationCtrl.cpp robotSimPanel.cpp simulatedWorld.cpp tree.cpp converter.cpp
initialProperties.cpp positionableWidget.cpp designWidget.cpp objectSelection.cpp designProperties.cpp faceWindow.cpp pointsList.cpp faceDesign.cpp
faceWidget.cpp robotConnection.cpp connectionLog.cpp connectionParameters.cpp apoloPort.cpp apoloMessage.cpp changeVertex.cpp prismWindow.cpp
manageWindows.cpp faceControlButtons.cpp robotSimGoTo.cpp ${RESOURCES})
IF(WIN32)
# SET_TARGET_PROPERTIES(APOLO PROPERTIES
# COMPILE_FLAGS "${wxWidgets_CXX_FLAGS} ${wxWidgets_DEFINITIONS}"
# LINK_FLAGS "/SUBSYSTEM:WINDOWS")
SET_TARGET_PROPERTIES(APOLO PROPERTIES
COMPILE_FLAGS "/D _CRT_SECURE_NO_WARNINGS"
LINK_FLAGS "/SUBSYSTEM:WINDOWS")
ENDIF(WIN32)
IF(WIN32)
TARGET_LINK_LIBRARIES(APOLO debug mrcore_d ${wxWidgets_LIBRARIES})
TARGET_LINK_LIBRARIES(APOLO optimized mrcore ${wxWidgets_LIBRARIES})
ELSE(WIN32) #LINUX
TARGET_LINK_LIBRARIES(APOLO mrcore ${OPENGL_LIBRARIES} ${wxWidgets_LIBRARIES})
ENDIF(WIN32)
ENDIF(wxWidgets_FOUND)
ADD_SUBDIRECTORY(apoloMex)
ADD_EXECUTABLE(DEMO_APOLO_PORT demoApoloPort/demoApoloPort.cpp apoloMessage.cpp)
IF(WIN32)
TARGET_LINK_LIBRARIES(DEMO_APOLO_PORT debug mrcore_d )
TARGET_LINK_LIBRARIES(DEMO_APOLO_PORT optimized mrcore )
ELSE(WIN32) #LINUX
TARGET_LINK_LIBRARIES(DEMO_APOLO_PORT mrcore ${OPENGL_LIBRARIES} ${wxWidgets_LIBRARIES})
ENDIF(WIN32)