-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (27 loc) · 933 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
# Copyright (c) 2021-present André Luiz Alvares
# Nene is licensed under the Zlib license.
# Please refer to the LICENSE file for details
# SPDX-License-Identifier: Zlib
# Set minimum cmake version, this should go until the latest available release,
# NOTE: if version interval it's changed, be sure to also update the examples/c/CMakeLists.txt file
cmake_minimum_required(VERSION 3.23-3.26)
# Set the project name, version and language
project(
nene
VERSION 0.4
DESCRIPTION "Game framework on top of SDL aimed for multiple programming languages"
LANGUAGES C
)
# add the src and external directories on the building procedure
add_subdirectory(external)
add_subdirectory(src)
# also add examples directory
add_subdirectory(examples/c)
# nene installation
install(TARGETS nene external_libs
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
FILE_SET HEADERS
)