12 lines
476 B
CMake
12 lines
476 B
CMake
#Uncomment the following two lines to compile the sources as an individual cmake porject. Change the <project_name> as you wanted.
|
|
#cmake_minimum_required(VERSION 3.15.2)
|
|
#project(<project_name>)
|
|
|
|
#Set executable name here
|
|
set(name g3d)
|
|
|
|
aux_source_directory(. "${name}_src")
|
|
add_executable(${name} ${${name}_src})
|
|
set_target_properties(${name} PROPERTIES CXX_STANDARD 11)
|
|
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
|
install(TARGETS ${name} RUNTIME DESTINATION sbin) |