-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b6554b
commit 54e64a3
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(pinrex) | ||
cmake_minimum_required(VERSION 3.10) | ||
project(pinrex) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
# Include the generated files for the dependencies | ||
include(${CMAKE_BINARY_DIR}/conan_toolchain.cmake) | ||
include_directories(include) | ||
# Include the generated files for the dependencies | ||
include(${CMAKE_BINARY_DIR}/conan_toolchain.cmake) | ||
include_directories(include) | ||
|
||
add_executable(pinrex src/main.cpp) | ||
add_executable(pinrex src/main.cpp) | ||
|
||
# Link the json library to your executable | ||
target_link_libraries(pinrex PRIVATE nlohmann_json::nlohmann_json) | ||
# Link the json library to your executable | ||
target_link_libraries(pinrex PRIVATE nlohmann_json::nlohmann_json) | ||
|
||
# Specify the installation rules | ||
install(TARGETS pinrex DESTINATION bin) # This line installs the executable to the bin directory | ||
# Specify the installation rules | ||
install(TARGETS pinrex DESTINATION bin) # This line installs the executable to | ||
# the bin directory |