Mercurial > minori
comparison dep/animia/CMakeLists.txt @ 56:6ff7aabeb9d7
deps: add animia for open files detection
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 28 Sep 2023 12:35:21 -0400 |
parents | |
children | fe719c109dbc |
comparison
equal
deleted
inserted
replaced
54:466ac9870df9 | 56:6ff7aabeb9d7 |
---|---|
1 cmake_minimum_required(VERSION 3.9) | |
2 project(animia) | |
3 set(SRC_FILES | |
4 src/main.cpp | |
5 ) | |
6 if(LINUX) | |
7 list(APPEND SRC_FILES src/linux.cpp) | |
8 elseif(UNIX) # this won't run on Linux | |
9 list(APPEND SRC_FILES src/bsd.cpp) | |
10 elseif(WIN32) | |
11 list(APPEND SRC_FILES src/win32.cpp) | |
12 endif() | |
13 add_library(animia SHARED ${SRC_FILES}) | |
14 set_target_properties(animia PROPERTIES | |
15 PUBLIC_HEADER animia/animia.h CXX_STANDARD 17) | |
16 target_include_directories(animia PRIVATE include) | |
17 | |
18 if(BUILD_TESTS) | |
19 project(test LANGUAGES CXX) | |
20 add_executable(test test/main.cpp) | |
21 | |
22 target_include_directories(test PUBLIC include) | |
23 target_link_libraries(test PUBLIC animia) | |
24 set_target_properties(test PROPERTIES CXX_STANDARD 17) | |
25 endif() |