mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
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
This commit is contained in:
@@ -49,6 +49,7 @@ else ()
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_library (MemoryModule STATIC MemoryModule.c MemoryModule.h)
|
add_library (MemoryModule STATIC MemoryModule.c MemoryModule.h)
|
||||||
|
target_include_directories(MemoryModule PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
set_target_properties ("MemoryModule" PROPERTIES PREFIX "")
|
set_target_properties ("MemoryModule" PROPERTIES PREFIX "")
|
||||||
endif ()
|
endif ()
|
||||||
|
|||||||
Reference in New Issue
Block a user