-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
48 lines (48 loc) · 1.51 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
43
44
45
46
47
48
# builds a combined C and C++ library called 'imgui'
if (FIPS_IMPORT)
fips_begin_lib(imgui)
fips_files(
src/cimgui.cpp
src/imgui_demo.cpp
src/imgui_draw.cpp
src/imgui_tables.cpp
src/imgui_widgets.cpp
src/imgui.cpp)
fips_end_lib()
fips_begin_lib(imgui-docking)
fips_files(
src-docking/cimgui.cpp
src-docking/imgui_demo.cpp
src-docking/imgui_draw.cpp
src-docking/imgui_tables.cpp
src-docking/imgui_widgets.cpp
src-docking/imgui.cpp)
fips_end_lib()
else()
cmake_minimum_required(VERSION 3.20)
set(CMAKE_CXX_STANDARD 11)
project(dcimgui)
add_library(imgui
src/cimgui.cpp
src/imgui_demo.cpp
src/imgui_draw.cpp
src/imgui_tables.cpp
src/imgui_widgets.cpp
src/imgui.cpp)
add_library(imgui-docking
src-docking/cimgui.cpp
src-docking/imgui_demo.cpp
src-docking/imgui_draw.cpp
src-docking/imgui_tables.cpp
src-docking/imgui_widgets.cpp
src-docking/imgui.cpp)
endif()
target_include_directories(imgui PUBLIC src)
target_include_directories(imgui-docking PUBLIC src-docking)
if (FIPS_CLANG OR FIPS_GCC)
target_compile_options(imgui PUBLIC -Wno-return-type-c-linkage -Wno-unused-function)
target_compile_options(imgui-docking PUBLIC -Wno-return-type-c-linkage -Wno-unused-function)
elseif (FIPS_MSVC)
target_compile_options(imgui PUBLIC /wd4190)
target_compile_options(imgui-docking PUBLIC /wd4190)
endif()