2023-07-02 22:21:26 +02:00
|
|
|
cmake_minimum_required(VERSION 3.25)
|
|
|
|
|
project(SpoonTool)
|
|
|
|
|
|
|
|
|
|
set (CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
|
|
|
|
find_package(Boost REQUIRED COMPONENTS thread chrono)
|
|
|
|
|
|
|
|
|
|
add_subdirectory(deps/vgcore)
|
|
|
|
|
|
|
|
|
|
add_subdirectory(Tools/MapTools)
|
|
|
|
|
|
2023-08-28 22:36:11 +02:00
|
|
|
add_executable(SpoonEdit src/main.cpp src/PropertiesWidget.cpp src/PropertiesWidget.h src/ObjectSelectWidget.cpp src/ObjectSelectWidget.h src/MainViewport.cpp src/MainViewport.h src/Model.cpp src/Model.h src/RailSelectWidget.cpp src/RailSelectWidget.h src/Config/Configs.h src/Config/Configs.cpp
|
|
|
|
|
src/InstanceVars.h
|
|
|
|
|
src/Objects.cpp)
|
2023-08-28 21:23:47 +02:00
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
2023-07-02 22:21:26 +02:00
|
|
|
|
|
|
|
|
target_link_libraries(SpoonEdit PUBLIC GCore SpoonMapTools Boost::thread Boost::chrono)
|
|
|
|
|
|
2023-08-28 22:36:11 +02:00
|
|
|
target_compile_definitions(SpoonEdit PRIVATE VMIRROR_ASSEMBLYNAME="SpoonEdit")
|
|
|
|
|
|
2023-07-02 22:21:26 +02:00
|
|
|
install(TARGETS SpoonEdit
|
|
|
|
|
CONFIGURATIONS Debug
|
|
|
|
|
RUNTIME DESTINATION Debug
|
|
|
|
|
LIBRARY DESTINATION Debug)
|
|
|
|
|
|
|
|
|
|
install(TARGETS SpoonEdit
|
|
|
|
|
CONFIGURATIONS Release
|
|
|
|
|
RUNTIME DESTINATION Release
|
|
|
|
|
LIBRARY DESTINATION Release)
|