-
Notifications
You must be signed in to change notification settings - Fork 81
/
CMakeLists.txt
55 lines (50 loc) · 1.7 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
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/src/server/shared/Configuration
${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography
${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography/Authentication
${CMAKE_SOURCE_DIR}/src/server/shared/Database
${CMAKE_SOURCE_DIR}/src/server/shared/DataStores
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging
${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic/CountedReference
${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic/LinkedReference
${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic
${CMAKE_SOURCE_DIR}/src/server/shared/Logging
${CMAKE_SOURCE_DIR}/src/server/shared/Memory
${CMAKE_SOURCE_DIR}/src/server/shared/Packets
${CMAKE_SOURCE_DIR}/src/server/shared/Policies
${CMAKE_SOURCE_DIR}/src/server/shared/Threading
${CMAKE_SOURCE_DIR}/src/server/shared/Utilities
${CMAKE_SOURCE_DIR}/dep/utf8cpp
${Boost_INCLUDE_DIRS}
${ACE_INCLUDE_DIR}
${MYSQL_INCLUDE_DIR}
${OPENSSL_INCLUDE_DIR}
)
add_executable(updater
App.cpp
)
target_link_libraries(updater
shared
${MYSQL_LIBRARY}
${Boost_LIBRARIES}
)
if (UNIX)
target_link_libraries(updater
"pthread"
)
endif()
if (WIN32)
add_custom_command(TARGET updater
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/updater.conf.dist ${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/
)
endif()
if (UNIX)
install(TARGETS updater DESTINATION bin)
install(FILES updater.conf.dist DESTINATION etc)
elseif (WIN32)
install(TARGETS updater DESTINATION "${CMAKE_INSTALL_PREFIX}")
install(FILES updater.conf.dist DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif()