comparison dep/animia/CMakeLists.txt @ 78:1ce00c1c8ddc

dep/animia: update to upstream
author Paper <mrpapersonic@gmail.com>
date Wed, 11 Oct 2023 12:16:15 -0400
parents fe719c109dbc
children eab9e623eb84
comparison
equal deleted inserted replaced
77:6f7385bd334c 78:1ce00c1c8ddc
9 list(APPEND SRC_FILES src/bsd.cpp) 9 list(APPEND SRC_FILES src/bsd.cpp)
10 elseif(WIN32) 10 elseif(WIN32)
11 list(APPEND SRC_FILES src/win32.cpp) 11 list(APPEND SRC_FILES src/win32.cpp)
12 endif() 12 endif()
13 add_library(animia SHARED ${SRC_FILES}) 13 add_library(animia SHARED ${SRC_FILES})
14 set_target_properties(animia PROPERTIES CXX_STANDARD 17) 14 set_target_properties(animia PROPERTIES
15 PUBLIC_HEADER animia/animia.h CXX_STANDARD 11)
15 target_include_directories(animia PRIVATE include) 16 target_include_directories(animia PRIVATE include)
16
17 install(TARGETS animia
18 ARCHIVE DESTINATION lib
19 LIBRARY DESTINATION lib
20 RUNTIME DESTINATION bin)
21 17
22 if(BUILD_TESTS) 18 if(BUILD_TESTS)
23 project(test LANGUAGES CXX) 19 project(test LANGUAGES CXX)
24 add_executable(test test/main.cpp) 20 add_executable(test test/main.cpp)
25 21