ENH: add source files

This commit is contained in:
Timothy Helton 2017-12-28 11:15:19 -07:00
parent 2db908fc4f
commit d3d2fafe27
3 changed files with 33 additions and 0 deletions

17
src/CMakeLists.txt Normal file
View 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()