mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
11 lines
229 B
CMake
11 lines
229 B
CMake
# Set the project name
|
|
project (subproject1)
|
|
|
|
# Create a sources variable with a link to all cpp files to compile
|
|
set(SOURCES
|
|
main1.cpp
|
|
)
|
|
|
|
# Add an executable with the above sources
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|