mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 04:14:34 +03:00
11 lines
263 B
CMake
11 lines
263 B
CMake
# Set the project name
|
|
project (sublibrary1)
|
|
|
|
# Add a library with the above sources
|
|
add_library(${PROJECT_NAME} src/sublib1.cpp)
|
|
add_library(sub::lib1 ALIAS ${PROJECT_NAME})
|
|
|
|
target_include_directories( ${PROJECT_NAME}
|
|
PUBLIC ${PROJECT_SOURCE_DIR}/include
|
|
)
|