10000 Make .h file accessible to superprojects · H4ckF0rFun/MemoryModule@a15e076 · GitHub
[go: up one dir, main page]

Skip to content

Commit a15e076

Browse files
authored
Make .h file accessible to superprojects
As is, you need to add_subdirectory and also add the include, this kills two birds with one stone
1 parent e039372 commit a15e076

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ else ()
4949
endif ()
5050

5151
add_library (MemoryModule STATIC MemoryModule.c MemoryModule.h)
52+
target_include_directories(MemoryModule PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
5253
if (NOT MSVC)
5354
set_target_properties ("MemoryModule" PROPERTIES PREFIX "")
5455
endif ()

0 commit comments

Comments
 (0)
0