diff options
author | art0007i <art0007i@gmail.com> | 2024-09-24 10:40:12 +0200 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-09-24 09:38:22 -0400 |
commit | 46f46b4caa0fbaba77ac2b2291d908d3bf81dd28 (patch) | |
tree | e2dcdf31c1ca33bfd3748de0e658e9bd0e008bb8 | |
parent | 86b4b06e78c5c71588c1b55273969a1327a6710a (diff) | |
download | lingo-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
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | README.md | 11 |
3 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index a7cadc7..1ca77eb 100644 --- a/.gitignore +++ b/.gitignore | |||
@@ -1,5 +1,6 @@ | |||
1 | build/ | 1 | build/ |
2 | builds/ | 2 | builds/ |
3 | assets/LL1.yaml | 3 | assets/LL1.yaml |
4 | assets/ids.yaml | ||
4 | .DS_Store | 5 | .DS_Store |
5 | .vs | 6 | .vs |
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 | |||
54 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 20) | 54 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD 20) |
55 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON) | 55 | set_property(TARGET lingo_ap_tracker PROPERTY CXX_STANDARD_REQUIRED ON) |
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) | 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) \ No newline at end of file | ||
diff --git a/README.md b/README.md index 83525dd..1e9b2a5 100644 --- a/README.md +++ b/README.md | |||
@@ -10,3 +10,14 @@ Releases of the tracker can be found [on the releases page](https://code.fourisl | |||
10 | ## Acknowledgments | 10 | ## Acknowledgments |
11 | 11 | ||
12 | Thanks to Kinrah for making the subway map image! | 12 | Thanks to Kinrah for making the subway map image! |
13 | |||
14 | ## Building | ||
15 | |||
16 | To build the app: | ||
17 | |||
18 | 1. Clone the repository including submodules: `git clone --recursive https://code.fourisland.com/lingo-ap-tracker` | ||
19 | 2. Put [LL1.yaml from archipelago](https://github.com/ArchipelagoMW/Archipelago/raw/main/worlds/lingo/data/LL1.yaml) in ./assets | ||
20 | 3. Put [ids.yaml from archipelago](https://github.com/ArchipelagoMW/Archipelago/raw/main/worlds/lingo/data/ids.yaml) in ./assets | ||
21 | 4. Configure the project: `cmake --preset=lingo-ap-tracker-preset` | ||
22 | 5. Build the application in debug mode: `cmake --build --preset=lingo-ap-tracker-preset` | ||
23 | 6. (Optional) Build the application in release mode: `cmake --build --preset=x64-release-preset` \ No newline at end of file | ||