Skip to content

Commit b0ef6a4

Browse files
authored
added CMake support (#12)
This PR supplies some minimal CMake support, to make SDLpp available via CMake's FetchContent or CPM Please supply a version (and maybe it is time to create a tag for the current version) Cheers Sebastian
1 parent e425bec commit b0ef6a4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
project(sdlpp VERSION 0.0 LANGUAGES CXX)
2+
3+
4+
5+
add_library(${PROJECT_NAME} INTERFACE)
6+
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
7+
8+
target_include_directories(
9+
${PROJECT_NAME}
10+
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
11+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
12+
)
13+

0 commit comments

Comments
 (0)