diff options
Diffstat (limited to 'app/dynstring/CMakeLists.txt')
-rw-r--r-- | app/dynstring/CMakeLists.txt | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/dynstring/CMakeLists.txt b/app/dynstring/CMakeLists.txt index b407805..01aa2b2 100644 --- a/app/dynstring/CMakeLists.txt +++ b/app/dynstring/CMakeLists.txt @@ -1,11 +1,17 @@ # compile the dynstring library
-set( SOURCES
- dynstring.c )
-
add_library(dynstring
- ${SOURCES})
+ "")
+
+target_sources(dynstring
+ PRIVATE
+ dynstring.c
+ PUBLIC
+ dynstring.h
+)
if(XTRKCAD_TESTING)
- add_subdirectory( unittest )
-endif(XTRKCAD_TESTING)
\ No newline at end of file + add_subdirectory(unittest)
+endif()
+
+target_include_directories(dynstring PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
\ No newline at end of file |