File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.14)
2+ if (NOT DEFINED CPP_MENU)
3+ set (CPP_MENU "CppMenu" CACHE STRING "Name for the CppMenu library" )
4+ endif ()
5+
6+ project (CPP_MENU)
27
38set (CMAKE_CXX_STANDARD 11)
49set (CMAKE_CXX_STANDARD_REQUIRED ON )
10+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )
511
12+ enable_testing ()
613include (FetchContent)
714
815message (STATUS "Fetching the CppSafeIO library..." )
916
1017FetchContent_Declare( cppsafeio
1118 GIT_REPOSITORY https://github.com/DanielRamirez404/CppSafeIO.git
12- GIT_TAG v2.0 .0
19+ GIT_TAG v2.1 .0
1320 GIT_SHALLOW TRUE
1421)
1522
1623FetchContent_MakeAvailable(cppsafeio)
1724
18- if (NOT DEFINED CPP_MENU)
19- set (CPP_MENU "CppMenu" CACHE STRING "Name for the CppMenu library" )
20- endif ()
21-
2225add_subdirectory (src)
23- target_link_libraries (${CPP_MENU} PUBLIC ${CPP_SAFE_IO} )
Original file line number Diff line number Diff line change 11add_library (${CPP_MENU} STATIC cppmenu.cpp)
22target_include_directories (${CPP_MENU} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
3+ target_link_libraries (${CPP_MENU} PUBLIC ${CPP_SAFE_IO} )
You can’t perform that action at this time.
0 commit comments