mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-05-13 18:09:43 +00:00
32 lines
887 B
CMake
32 lines
887 B
CMake
#
|
|
# Copyright (C) 2020-2021 QuasarApp.
|
|
# Distributed under the lgplv3 software license, see the accompanying
|
|
# Everyone is permitted to copy and distribute verbatim copies
|
|
# of this license document, but changing it is not allowed.
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
set(CURRENT_PROJECT "AbstractLvl")
|
|
|
|
add_definitions(-DCRAWL_ABSTRACT_LEVEL_LIBRARY)
|
|
|
|
|
|
file(GLOB SOURCE_CPP
|
|
"*.cpp"
|
|
"private/*.cpp"
|
|
"*.qrc"
|
|
"private/*.qrc"
|
|
"CrawlAbstractLevelAssets/*.qrc"
|
|
)
|
|
|
|
set(PUBLIC_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
set(PRIVATE_INCUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/private")
|
|
|
|
add_library(${CURRENT_PROJECT} ${SOURCE_CPP} ${SOURCE_QRC})
|
|
|
|
target_link_libraries(${CURRENT_PROJECT} PUBLIC ${PROJECT_NAME}Core)
|
|
|
|
target_include_directories(${CURRENT_PROJECT} PUBLIC ${PUBLIC_INCUDE_DIR})
|
|
target_include_directories(${CURRENT_PROJECT} PRIVATE ${PRIVATE_INCUDE_DIR})
|
|
|