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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy