-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists_OLD.txt
57 lines (42 loc) · 1.55 KB
/
CMakeLists_OLD.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
cmake_minimum_required (VERSION 2.6)
FIND_PACKAGE(wxWidgets COMPONENTS base core gl net aui adv xml)
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)
#file(GLOB ALL_SRC "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
file(GLOB ALL_SRC "${CMAKE_SOURCE_DIR}/*.cpp")
ADD_EXECUTABLE(APOLO ${ALL_SRC} ${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)