Tuesday, September 29, 2020

CMake : globbing the file list

http://derekmolloy.ie/hello-world-introductions-to-cmake/ 


cmake_minimum_required(VERSION 3.0.0)

project(csim_2020 VERSION 0.1.0)


include(CTest)
enable_testing()

file(GLOB SOURCES "*.cpp")
add_executable(testStudent ${SOURCES})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

No comments:

Post a Comment