mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
* Add missing packageproject options * Fix typos with codespell * Update test/style/CMakeLists.txt Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com> * fix-cmake-format --------- Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
26 lines
583 B
CMake
26 lines
583 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(CPMEnTTExample)
|
|
|
|
# ---- Dependencies ----
|
|
|
|
include(../../cmake/CPM.cmake)
|
|
|
|
CPMAddPackage(
|
|
NAME EnTT
|
|
VERSION 3.1.1
|
|
GITHUB_REPOSITORY skypjack/entt # EnTT's CMakeLists screws with configuration options
|
|
DOWNLOAD_ONLY True
|
|
)
|
|
|
|
if(EnTT_ADDED)
|
|
add_library(EnTT INTERFACE)
|
|
target_include_directories(EnTT SYSTEM INTERFACE ${EnTT_SOURCE_DIR}/src)
|
|
endif()
|
|
|
|
# ---- Executable ----
|
|
|
|
add_executable(CPMEnTTExample main.cpp)
|
|
target_compile_features(CPMEnTTExample PRIVATE cxx_std_17)
|
|
target_link_libraries(CPMEnTTExample EnTT)
|