You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
508 B

cmake_minimum_required(VERSION 3.5)
set(IDIR_BIN "/home/key/Git/cmake/cmakeInstall/bin")
set(IDIR_LIB "/home/key/Git/cmake/cmakeInstall/lib")
set(IDIR_INC "/home/key/Git/cmake/cmakeInstall/inc")
project(test C CXX)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(bsl)
list(APPEND EXTRA_LIBS stmFunc)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} PUBLIC ${EXTRA_LIBS})
install(TARGETS ${PROJECT_NAME} DESTINATION ${IDIR_BIN})
install(FILES main.h DESTINATION ${IDIR_INC})