mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 15:17:48 +01:00
21 lines
486 B
CMake
21 lines
486 B
CMake
add_library(cardboy_utils INTERFACE)
|
|
|
|
option(CARDBOY_MORE_CHECKS "More checks" OFF)
|
|
|
|
set_target_properties(cardboy_utils PROPERTIES
|
|
EXPORT_NAME utils
|
|
)
|
|
|
|
target_include_directories(cardboy_utils
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
if(CARDBOY_MORE_CHECKS)
|
|
target_compile_definitions(cardboy_utils INTERFACE CARDBOY_MORE_CHECKS=1)
|
|
endif()
|
|
|
|
target_sources(cardboy_utils
|
|
INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include/cardboy/utils/utils.hpp
|
|
) |