view dep/animia/CMakeLists.txt @ 118:39521c47c7a3

*: another huge megacommit, SORRY The torrents page works a lot better now Added the edit option to the anime list right click menu Vectorized currently playing files Available player and extensions are now loaded at runtime from files in (dotpath)/players.json and (dotpath)/extensions.json These paths are not permanent and will likely be moved to (dotpath)/recognition ... ... ...
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 23:40:54 -0500
parents eab9e623eb84
children 69db40272acd
line wrap: on
line source

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 11)
target_include_directories(animia PRIVATE include)
option(BUILD_TESTS "Build tests" OFF)

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()