diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-03-24 02:08:51 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-03-24 02:08:51 -0700 |
commit | f12eca235e59c0ea64d2c569674ea7ad31753215 (patch) | |
tree | b8131413756f8d0f01957e373c7125423550566e /CMakeLists.txt | |
parent | 2d178326a3af7546b311aa9937176a092babfdfc (diff) | |
download | ytcpp-f12eca235e59c0ea64d2c569674ea7ad31753215.tar.gz |
first steps
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b11fdf7 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.26.0) + +project(ytcpp) + +add_executable(${PROJECT_NAME} main.cpp) + +set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) + +if(WIN32) # Install dlls in the same directory as the executable on Windows + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +endif() + +include(FetchContent) +FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git + GIT_TAG c4713a704ca12237485ecbfec185f76c2a81bd09) +FetchContent_MakeAvailable(cpr) + +target_link_libraries(${PROJECT_NAME} PRIVATE cpr::cpr) |