2022-06-10 19:38:18 +08:00
|
|
|
cmake_minimum_required(VERSION 3.1.3)
|
|
|
|
|
|
|
|
project(kysdk-base)
|
|
|
|
|
|
|
|
include(CMakePackageConfigHelpers)
|
2023-09-19 16:12:39 +08:00
|
|
|
include(GNUInstallDirs)
|
2022-06-10 19:38:18 +08:00
|
|
|
|
|
|
|
include_directories("${PROJECT_BINARY_DIR}")
|
|
|
|
|
|
|
|
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
2023-02-09 17:18:53 +08:00
|
|
|
set (CMAKE_SKIP_RPATH ON)
|
2022-06-10 19:38:18 +08:00
|
|
|
|
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
message("Build Type: ${CMAKE_BUILD_TYPE}")
|
|
|
|
|
|
|
|
set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
|
|
|
|
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
|
|
|
|
|
|
|
|
set (CMAKE_INSTALL_PREFIX /usr)
|
|
|
|
|
2023-02-07 11:41:06 +08:00
|
|
|
add_subdirectory(src)
|