Mercurial > minori
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dep/animia/CMakeLists.txt Thu Sep 28 12:35:21 2023 -0400 @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.9) +project(animia) +set(SRC_FILES + src/main.cpp +) +if(LINUX) + list(APPEND SRC_FILES src/linux.cpp) +elseif(UNIX) # this won't run on Linux + list(APPEND SRC_FILES src/bsd.cpp) +elseif(WIN32) + list(APPEND SRC_FILES src/win32.cpp) +endif() +add_library(animia SHARED ${SRC_FILES}) +set_target_properties(animia PROPERTIES + PUBLIC_HEADER animia/animia.h CXX_STANDARD 17) +target_include_directories(animia PRIVATE include) + +if(BUILD_TESTS) + project(test LANGUAGES CXX) + add_executable(test test/main.cpp) + + target_include_directories(test PUBLIC include) + target_link_libraries(test PUBLIC animia) + set_target_properties(test PROPERTIES CXX_STANDARD 17) +endif()