about summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorart0007i <art0007i@gmail.com>2024-09-24 10:40:12 +0200
committerStar Rauchenberger <fefferburbia@gmail.com>2024-09-24 09:38:22 -0400
commit46f46b4caa0fbaba77ac2b2291d908d3bf81dd28 (patch)
treee2dcdf31c1ca33bfd3748de0e658e9bd0e008bb8 /CMakeLists.txt
parent86b4b06e78c5c71588c1b55273969a1327a6710a (diff)
downloadlingo-ap-tracker-46f46b4caa0fbaba77ac2b2291d908d3bf81dd28.tar.gz
lingo-ap-tracker-46f46b4caa0fbaba77ac2b2291d908d3bf81dd28.tar.bz2
lingo-ap-tracker-46f46b4caa0fbaba77ac2b2291d908d3bf81dd28.zip
Add build instructions Add ids.yaml file to gitignore Make cmake automatically copy assets to build directory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e1cb7f0..b168f5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -54,3 +54,13 @@ add_executable(lingo_ap_tracker
54set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 20) 54set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 20)
55set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON) 55set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON)
56target_link_libraries(lingo_ap_tracker PRIVATE fmt::fmt OpenSSL::SSL OpenSSL::Crypto websocketpp::websocketpp wx::core wx::base wx::net yaml-cpp::yaml-cpp) 56target_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
58set(SRC_DIR "${CMAKE_SOURCE_DIR}/assets")
59set(DST_DIR "${CMAKE_BINARY_DIR}/$<CONFIG>/assets")
60
61add_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
66add_dependencies(lingo_ap_tracker copy_assets) \ No newline at end of file