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:
Ian Bell
2018-05-18 00:37:57 -06:00
committed by GitHub
parent e039372355
commit a15e0769b0
+1
View File
@@ -49,6 +49,7 @@ else ()
endif ()
add_library (MemoryModule STATIC MemoryModule.c MemoryModule.h)
target_include_directories(MemoryModule PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
if (NOT MSVC)
set_target_properties ("MemoryModule" PROPERTIES PREFIX "")
endif ()