ENH: add source files
This commit is contained in:
parent
2db908fc4f
commit
d3d2fafe27
3 changed files with 33 additions and 0 deletions
17
src/CMakeLists.txt
Normal file
17
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
project(${CMAKE_PROJECT_NAME}_lib)
|
||||
|
||||
set(HEADER_FILES
|
||||
)
|
||||
set(SOURCE_FILES
|
||||
)
|
||||
|
||||
if (EXISTS ${SOURCE_FILES})
|
||||
# The library contains header and source files.
|
||||
add_library(${CMAKE_PROJECT_NAME}_lib STATIC
|
||||
${SOURCE_FILES}
|
||||
${HEADER_FILES}
|
||||
)
|
||||
else()
|
||||
# The library only contains header files.
|
||||
add_library(${CMAKE_PROJECT_NAME}_lib INTERFACE)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue