GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cat-react-cpp/CMakeLists.txt at master · tee-community/cat-react-cpp

Expand file tree

/

CMakeLists.txt

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
64 lines (48 loc) · 1.61 KB
/

CMakeLists.txt

Copy path

File metadata and controls

64 lines (48 loc) · 1.61 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 3.22)
### Common
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(TARGET_BITS "32")
else()
set(TARGET_BITS "64")
endif()
if(WIN32)
set(TARGET_OS "windows")
elseif(UNIX)
set(TARGET_OS "linux")
endif()
if(NOT(CMAKE_BUILD_TYPE))
set(CMAKE_BUILD_TYPE Release)
endif()
set(LIB_DIR_AGNOSTIC "${TARGET_OS}/lib${TARGET_BITS}")
set(LIB_DIR "${TARGET_OS}/lib${TARGET_BITS}/${CMAKE_BUILD_TYPE}")
function(set_extra_dirs_lib VARIABLE NAME)
set(DIR_AGNOSTIC "libs/${NAME}/${LIB_DIR_AGNOSTIC}")
set("HINTS_${VARIABLE}_LIBDIR_AGNOSTIC" "${DIR_AGNOSTIC}" PARENT_SCOPE)
set("EXTRA_${VARIABLE}_LIBDIR_AGNOSTIC" "${DIR_AGNOSTIC}" PARENT_SCOPE)
set(DIR "libs/${NAME}/${LIB_DIR}")
set("HINTS_${VARIABLE}_LIBDIR" "${DIR}" PARENT_SCOPE)
set("EXTRA_${VARIABLE}_LIBDIR" "${DIR}" PARENT_SCOPE)
endfunction()
function(set_extra_dirs_include VARIABLE NAME)
set("HINTS_${VARIABLE}_INCLUDEDIR" "libs/${NAME}/include" PARENT_SCOPE)
endfunction()
### Project
project(cat-react VERSION 1.0 DESCRIPTION "React to cats")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
file(GLOB_RECURSE SOURCES src/*.cpp src/*.h src/*.hpp)
add_executable(${PROJECT_NAME} ${SOURCES})
find_package(DPP REQUIRED)
if(NOT DPP_FOUND)
message(SEND_ERROR "You must install DPP to run this project")
endif()
target_link_libraries(${PROJECT_NAME}
${DPP_LIBRARIES}
)
target_include_directories(${PROJECT_NAME} PRIVATE
${DPP_INCLUDE_DIRS}
)
file(COPY ${DPP_COPY_FILES} DESTINATION .)
set_target_properties(${PROJECT_NAME} PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.