-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
70 lines (58 loc) · 2.1 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required(VERSION 3.14)
project(agsimgui VERSION 0.1.0 DESCRIPTION "Dear ImGui plugin for Adventure Game Studio.")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fvisibility=hidden -O2 -g -Wall -std=c++11")
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
# WIN32 is set by CMake for any Windows platform
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(LINUX TRUE)
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(MACOS TRUE)
else()
message(FATAL_ERROR "Unsupported system: ${CMAKE_SYSTEM_NAME}")
endif ()
include_directories(../ags/Engine/)
include_directories(../ags/Common/)
include_directories(.)
if(NOT MACOS)
find_package(OpenGL)
endif ()
if (WIN32)
find_package(DirectX)
elseif (LINUX)
find_package(X11)
endif()
add_library(agsimgui SHARED
agsimgui/imgui/imconfig.h
agsimgui/imgui/imgui.h
agsimgui/imgui/imgui.cpp
agsimgui/imgui/imgui_tables.cpp
agsimgui/imgui/imgui_draw.cpp
agsimgui/imgui/imgui_widgets.cpp
agsimgui/imgui/imgui_demo.cpp
agsimgui/imgui/misc/cpp/imgui_stdlib.cpp
agsimgui/imgui/misc/cpp/imgui_stdlib.h
agsimgui/imgui/misc/softraster/texture.h
agsimgui/imgui/misc/softraster/softraster.h
agsimgui/imgui/examples/imgui_impl_softraster.cpp
agsimgui/imgui/examples/imgui_impl_softraster.h
agsimgui/imgui/examples/imgui_impl_dx9.cpp
agsimgui/imgui/examples/imgui_impl_dx9.h
agsimgui/agsimgui.h
agsimgui/AgsImVec2.cpp
agsimgui/AgsImVec2.h
agsimgui/AgsImVec4.cpp
agsimgui/AgsImVec4.h
agsimgui/AgsImGuiStyle.cpp
agsimgui/AgsImGuiStyle.h
agsimgui/SerialHelper.cpp
agsimgui/SerialHelper.h
agsimgui/agsimgui.cpp
agsimgui/Screen.cpp
agsimgui/Screen.h)
set(CLIP_EXAMPLES OFF CACHE BOOL "Compile clip examples")
set(CLIP_TESTS OFF CACHE BOOL "Compile clip tests")
add_subdirectory(agsimgui/libs/clip EXCLUDE_FROM_ALL)
target_link_libraries(agsimgui m
clip)