64 lines
1.3 KiB
CMake
64 lines
1.3 KiB
CMake
project(TacticalZ-Game)
|
|
|
|
find_package(Boost REQUIRED COMPONENTS system filesystem thread chrono program_options)
|
|
|
|
set(INCLUDE_PATH ${CMAKE_SOURCE_DIR}/include/Game)
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/deps/include
|
|
${CMAKE_SOURCE_DIR}/include/Engine
|
|
${INCLUDE_PATH}
|
|
${Boost_INCLUDE_DIRS}
|
|
)
|
|
|
|
file(GLOB SOURCE_FILES_Systems
|
|
"${INCLUDE_PATH}/Systems/*.h"
|
|
"Systems/*.cpp"
|
|
)
|
|
source_group(Systems FILES ${SOURCE_FILES_Systems})
|
|
|
|
file(GLOB SOURCE_FILES_Systems_Weapon
|
|
"${INCLUDE_PATH}/Systems/Weapon/*.h"
|
|
"Systems/Weapon/*.cpp"
|
|
)
|
|
source_group(Systems\\Weapon FILES ${SOURCE_FILES_Systems_Weapon})
|
|
|
|
file(GLOB SOURCE_FILES_Events
|
|
"${INCLUDE_PATH}/Events/*.h"
|
|
"Events/*.cpp"
|
|
)
|
|
source_group(Events FILES ${SOURCE_FILES_Events})
|
|
|
|
file(GLOB SOURCE_FILES_Network
|
|
"${INCLUDE_PATH}/Network/*.h"
|
|
"Network/*.cpp"
|
|
)
|
|
source_group(Network FILES ${SOURCE_FILES_Network})
|
|
set(SOURCE_FILES
|
|
${SOURCE_FILES}
|
|
"Game.cpp"
|
|
"MiniDump.cpp"
|
|
${SOURCE_FILES_Systems}
|
|
${SOURCE_FILES_Systems_Weapon}
|
|
${SOURCE_FILES_Events}
|
|
${SOURCE_FILES_Network}
|
|
)
|
|
|
|
set(LIBRARIES
|
|
|
|
)
|
|
|
|
add_library(Game ${SOURCE_FILES})
|
|
target_link_libraries(Game
|
|
Engine
|
|
${LIBRARIES}
|
|
)
|
|
|
|
add_executable(TacticalZ
|
|
main.cpp
|
|
)
|
|
target_link_libraries(TacticalZ
|
|
Game
|
|
${LIBRARIES}
|
|
)
|
|
|