diff options
Diffstat (limited to 'externals')
| -rw-r--r-- | externals/getopt/CMakeLists.txt | 14 | ||||
| -rw-r--r-- | externals/glad/CMakeLists.txt | 15 | ||||
| -rw-r--r-- | externals/inih/CMakeLists.txt | 17 |
3 files changed, 19 insertions, 27 deletions
diff --git a/externals/getopt/CMakeLists.txt b/externals/getopt/CMakeLists.txt index c8b745d55..ad7a2b363 100644 --- a/externals/getopt/CMakeLists.txt +++ b/externals/getopt/CMakeLists.txt | |||
| @@ -1,11 +1,9 @@ | |||
| 1 | set(SRCS | 1 | add_library(getopt |
| 2 | getopt.c | 2 | getopt.c |
| 3 | ) | 3 | getopt.h |
| 4 | set(HEADERS | 4 | ) |
| 5 | getopt.h | 5 | |
| 6 | ) | 6 | create_target_directory_groups(getopt) |
| 7 | 7 | ||
| 8 | create_directory_groups(${SRCS} ${HEADERS}) | ||
| 9 | add_library(getopt ${SRCS} ${HEADERS}) | ||
| 10 | target_compile_definitions(getopt PUBLIC STATIC_GETOPT) | 8 | target_compile_definitions(getopt PUBLIC STATIC_GETOPT) |
| 11 | target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) | 9 | target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) |
diff --git a/externals/glad/CMakeLists.txt b/externals/glad/CMakeLists.txt index 6d35a844b..c43ae475a 100644 --- a/externals/glad/CMakeLists.txt +++ b/externals/glad/CMakeLists.txt | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | set(SRCS | 1 | add_library(glad STATIC |
| 2 | src/glad.c | 2 | src/glad.c |
| 3 | ) | 3 | include/KHR/khrplatform.h |
| 4 | set(HEADERS | 4 | include/glad/glad.h |
| 5 | include/KHR/khrplatform.h | 5 | ) |
| 6 | include/glad/glad.h | ||
| 7 | ) | ||
| 8 | 6 | ||
| 9 | create_directory_groups(${SRCS} ${HEADERS}) | 7 | create_target_directory_groups(glad) |
| 10 | add_library(glad STATIC ${SRCS} ${HEADERS}) | ||
| 11 | target_include_directories(glad PUBLIC "include/") | 8 | target_include_directories(glad PUBLIC "include/") |
| 12 | 9 | ||
| 13 | if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") | 10 | if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") |
diff --git a/externals/inih/CMakeLists.txt b/externals/inih/CMakeLists.txt index cff36a581..2a75852c2 100644 --- a/externals/inih/CMakeLists.txt +++ b/externals/inih/CMakeLists.txt | |||
| @@ -1,12 +1,9 @@ | |||
| 1 | set(SRCS | 1 | add_library(inih |
| 2 | inih/ini.c | 2 | inih/ini.c |
| 3 | inih/cpp/INIReader.cpp | 3 | inih/ini.h |
| 4 | ) | 4 | inih/cpp/INIReader.cpp |
| 5 | set(HEADERS | 5 | inih/cpp/INIReader.h |
| 6 | inih/ini.h | 6 | ) |
| 7 | inih/cpp/INIReader.h | ||
| 8 | ) | ||
| 9 | 7 | ||
| 10 | create_directory_groups(${SRCS} ${HEADERS}) | 8 | create_target_directory_groups(inih) |
| 11 | add_library(inih ${SRCS} ${HEADERS}) | ||
| 12 | target_include_directories(inih INTERFACE .) | 9 | target_include_directories(inih INTERFACE .) |