You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
project-kyoku/src/impl/CMakeLists.txt

23 lines
931 B
CMake

cmake_minimum_required(VERSION 3.13)
project(impl)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/shared)
# check SFML by some compilation flag or idk
file(GLOB_RECURSE SOURCES "sfml/*.cpp" "sfml/*.h")
find_package(SFML REQUIRED graphics window system audio)
include_directories(${SFML_INCL_DIR} ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(project-kyoku sfml-system sfml-audio sfml-graphics sfml-network)
######
add_library(impl STATIC ${SOURCES})
target_link_libraries(impl tools classicmode application)
target_include_directories(impl PRIVATE ${CMAKE_SOURCE_DIR}/src/modes/classicmode)
target_include_directories(impl PRIVATE ${CMAKE_SOURCE_DIR}/src/tools/shared)
target_include_directories(impl PRIVATE ${CMAKE_SOURCE_DIR}/src/application/shared)
target_include_directories(project-kyoku PRIVATE ${CMAKE_SOURCE_DIR}/src/impl/sfml)