-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (21 loc) · 963 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.21.0)
project(kittygui VERSION 0.0.1)
macro(print_all_variables)
message(STATUS "print_all_variables------------------------------------------{")
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
message(STATUS "print_all_variables------------------------------------------}")
endmacro()
macro(add_prebuild_command PREBUILD_TARGET STITCH)
add_custom_command(TARGET ${PREBUILD_TARGET} PRE_BUILD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND quom "src/stitches/stitch_${STITCH}.hpp" "kittylib_${STITCH}.hpp"
)
endmacro()
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# file(GLOB_RECURSE SRC "${CMAKE_CURRENT_SOURCE_DIR}" *.cpp *.hpp)
file(GLOB_RECURSE SRC ${CMAKE_CURRENT_SOURCE_DIR} src/*.hpp src/*.cpp)
find_package(DirectX REQUIRED)
add_subdirectory(examples)