forked from lucidspriter/SpriterPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (19 loc) · 763 Bytes
/
CMakeLists.txt
File metadata and controls
25 lines (19 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.12)
project(spriterplusplus VERSION 1.0 LANGUAGES CXX)
# GLOB is gross
file(GLOB_RECURSE SPRITER_ENGINE_SRCS *.cpp)
add_library(spriterengine STATIC ${SPRITER_ENGINE_SRCS})
add_library(spriterplusplus::spriterengine ALIAS spriterengine)
target_include_directories(spriterengine PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
)
target_compile_features(spriterengine PUBLIC cxx_std_11)
target_compile_options(spriterengine PRIVATE
$<$<NOT:$<PLATFORM_ID:Windows>>:-Wall>
$<$<NOT:$<PLATFORM_ID:Windows>>:-Wno-sign-compare>
$<$<NOT:$<PLATFORM_ID:Windows>>:-Wno-reorder>
$<$<NOT:$<PLATFORM_ID:Windows>>:-Wno-unused-variable>
)
set_target_properties(spriterengine PROPERTIES
POSITION_INDEPENDENT_CODE ON
)