You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
442 B
CMake
22 lines
442 B
CMake
|
1 month ago
|
cmake_minimum_required(VERSION 3.10.0)
|
||
|
|
project(sg VERSION 0.1.0)
|
||
|
|
|
||
|
|
set(CMAKE_CXX_STANDARD 17)
|
||
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||
|
|
|
||
|
|
include_directories(
|
||
|
|
"${PROJECT_SOURCE_DIR}"
|
||
|
|
)
|
||
|
|
|
||
|
|
file(GLOB_RECURSE SRCS "*.h" "*.cpp")
|
||
|
|
file(GLOB_RECURSE HDRS "*.h")
|
||
|
|
|
||
|
|
add_library(sg STATIC ${SRCS})
|
||
|
|
|
||
|
|
if (UNIX)
|
||
|
|
target_link_libraries(sg Threads::Threads)
|
||
|
|
else()
|
||
|
|
target_link_libraries(sg )
|
||
|
|
endif()
|
||
|
|
|
||
|
|
install(TARGETS sg DESTINATION "${CMAKE_SOURCE_DIR}/output")
|