forked from Ndymario/PvsP-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·42 lines (36 loc) · 1.11 KB
/
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
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.11)
project(pvsp_engine)
ADD_SUBDIRECTORY(include)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED true)
set(CMAKE_CXX_FLAGS "-fpermissive")
set(BINARY_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BINARY_OUTPUT_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BINARY_OUTPUT_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BINARY_OUTPUT_DIR})
#find_package(raylib 3.0 QUIET)
#if (NOT raylib_FOUND)
# include(FetchContent)
#
# FetchContent_Declare(
# raylib
# URL https://github.com/raysan5/raylib/archive/master.tar.gz
# )
#
# FetchContent_GetProperties(raylib)
# if (NOT raylib_POPULATED)
# set(FETCHCONTENT_QUIET NO)
# FetchContent_Populate(raylib)
#
# set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
#
# add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR})
#
# endif()
#
#endif()
include_directories("src")
file(GLOB_RECURSE SOURCES RELATIVE ${CMAKE_SOURCE_DIR} "src/*.cpp")
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} raylib imgui)
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC include)