forked from RobLoach/raylib-aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (28 loc) · 808 Bytes
/
CMakeLists.txt
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
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.11)
project (raylib_aseprite
VERSION 5.0.0
DESCRIPTION "raylib_aseprite: Use Aseprite files in raylib"
HOMEPAGE_URL "https://github.com/robloach/raylib-aseprite"
LANGUAGES C)
# Include Directory
add_subdirectory(include)
# Options
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
set(RAYLIB_ASEPRITE_IS_MAIN TRUE)
else()
set(RAYLIB_ASEPRITE_IS_MAIN FALSE)
endif()
option(RAYLIB_ASEPRITE_BUILD_EXAMPLES "Examples" ${RAYLIB_ASEPRITE_IS_MAIN})
# Examples
if(RAYLIB_ASEPRITE_BUILD_EXAMPLES)
add_subdirectory(examples)
# Testing
include(CTest)
enable_testing()
if(BUILD_TESTING)
# set(CTEST_CUSTOM_TESTS_IGNORE
# pkg-config--static
# )
add_subdirectory(test)
endif()
endif()