diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f9f1117..4eef9d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -48,8 +48,19 @@ add_executable(lingo_ap_tracker | |||
48 | "src/subway_map.cpp" | 48 | "src/subway_map.cpp" |
49 | "src/network_set.cpp" | 49 | "src/network_set.cpp" |
50 | "src/logger.cpp" | 50 | "src/logger.cpp" |
51 | "src/godot_variant.cpp" | ||
51 | "vendor/whereami/whereami.c" | 52 | "vendor/whereami/whereami.c" |
52 | ) | 53 | ) |
53 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 20) | 54 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 20) |
54 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON) | 55 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON) |
55 | target_link_libraries(lingo_ap_tracker PRIVATE fmt::fmt OpenSSL::SSL OpenSSL::Crypto websocketpp::websocketpp wx::core wx::base wx::net yaml-cpp::yaml-cpp) | 56 | target_link_libraries(lingo_ap_tracker PRIVATE fmt::fmt OpenSSL::SSL OpenSSL::Crypto websocketpp::websocketpp wx::core wx::base wx::net yaml-cpp::yaml-cpp) |
57 | |||
58 | set(SRC_DIR "${CMAKE_SOURCE_DIR}/assets") | ||
59 | set(DST_DIR "${CMAKE_BINARY_DIR}/$<CONFIG>/assets") | ||
60 | |||
61 | add_custom_target(copy_assets ALL | ||
62 | COMMAND ${CMAKE_COMMAND} -E copy_directory ${SRC_DIR} ${DST_DIR} | ||
63 | COMMENT "Copying folder from ${SRC_DIR} to ${DST_DIR}" | ||
64 | ) | ||
65 | |||
66 | add_dependencies(lingo_ap_tracker copy_assets) | ||