File tree 12 files changed +39
-35
lines changed
12 files changed +39
-35
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ cmake_minimum_required(VERSION 3.5)
3
3
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /CMakeModules" )
4
4
list (APPEND CMAKE_PREFIX_PATH "${CMAKE_BINARY_DIR} /cmake" )
5
5
6
- include (BuildType )
6
+ include (ForgeBuildType )
7
7
include (FGInstallDirs)
8
- include (GetPrerequisites)
9
- include (InternalUtils)
10
- include (platform)
8
+ include (ForgeInternalUtils)
9
+ include (ForgePlatformSetup)
11
10
12
11
option (BUILD_SHARED_LIBS "Build shared/static library" ON )
13
12
option (FG_ENABLE_HUNTER "Use Hunter cmake package handler" OFF )
@@ -27,7 +26,7 @@ endif()
27
26
28
27
project (Forge VERSION 1.0.2 LANGUAGES C CXX)
29
28
30
- include (Version )
29
+ include (ForgeVersion )
31
30
32
31
set_property (GLOBAL PROPERTY USE_FOLDERS ON )
33
32
@@ -174,3 +173,8 @@ include(CPackConfig)
174
173
175
174
conditional_directory(FG_BUILD_DOCS docs)
176
175
conditional_directory(FG_BUILD_EXAMPLES examples)
176
+
177
+ mark_as_advanced (
178
+ pkgcfg_lib_FontConfigPkg_freetype
179
+ pkgcfg_lib_FontConfigPkg_fontconfig
180
+ )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ cmake_minimum_required(VERSION 3.5)
9
9
10
10
list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR} /CMakeModules/nsis" )
11
11
12
- include (Version )
12
+ include (ForgeVersion )
13
13
include (CPackIFW)
14
14
15
15
set (VENDOR_NAME "ArrayFire" )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
- add_library (c_api_interface INTERFACE )
1
+ add_library (forge_c_api_interface INTERFACE )
2
2
3
- target_sources (c_api_interface
3
+ target_sources (forge_c_api_interface
4
4
INTERFACE
5
5
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /chart.cpp>
6
6
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /exception.cpp>
@@ -13,11 +13,11 @@ target_sources(c_api_interface
13
13
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /window.cpp>
14
14
)
15
15
16
- target_include_directories (c_api_interface
16
+ target_include_directories (forge_c_api_interface
17
17
INTERFACE
18
- $<BUILD_INTERFACE:$<TARGET_PROPERTY:backend_interface ,INTERFACE_INCLUDE_DIRECTORIES >>
18
+ $<BUILD_INTERFACE:$<TARGET_PROPERTY:forge_backend_interface ,INTERFACE_INCLUDE_DIRECTORIES >>
19
19
)
20
20
21
21
if (NOT BUILD_SHARED_LIBS )
22
- install (TARGETS c_api_interface EXPORT ForgeTargets)
22
+ install (TARGETS forge_c_api_interface EXPORT ForgeTargets)
23
23
endif ()
Original file line number Diff line number Diff line change 1
- add_library (cpp_api_interface INTERFACE )
1
+ add_library (forge_cpp_api_interface INTERFACE )
2
2
3
- target_sources (cpp_api_interface
3
+ target_sources (forge_cpp_api_interface
4
4
INTERFACE
5
5
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /chart.cpp>
6
6
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /error.hpp>
@@ -14,11 +14,11 @@ target_sources(cpp_api_interface
14
14
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /window.cpp>
15
15
)
16
16
17
- target_include_directories (cpp_api_interface
17
+ target_include_directories (forge_cpp_api_interface
18
18
INTERFACE
19
19
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
20
20
)
21
21
22
22
if (NOT BUILD_SHARED_LIBS )
23
- install (TARGETS cpp_api_interface EXPORT ForgeTargets)
23
+ install (TARGETS forge_cpp_api_interface EXPORT ForgeTargets)
24
24
endif ()
Original file line number Diff line number Diff line change 1
- add_library (backend_interface INTERFACE )
1
+ add_library (forge_backend_interface INTERFACE )
2
2
3
- target_sources (backend_interface
3
+ target_sources (forge_backend_interface
4
4
INTERFACE
5
5
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /chart_common.hpp>
6
6
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /chart.hpp>
@@ -18,12 +18,12 @@ target_sources(backend_interface
18
18
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /window.hpp>
19
19
)
20
20
21
- target_include_directories (backend_interface
21
+ target_include_directories (forge_backend_interface
22
22
INTERFACE
23
23
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
24
24
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include >
25
25
)
26
26
27
27
if (NOT BUILD_SHARED_LIBS )
28
- install (TARGETS backend_interface EXPORT ForgeTargets)
28
+ install (TARGETS forge_backend_interface EXPORT ForgeTargets)
29
29
endif ()
Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ target_link_libraries(${BackendTarget}
94
94
$<$<NOT :$<CONFIG:Release>>:glbinding::glbinding-aux>
95
95
glm
96
96
Boost::boost
97
- backend_interface
98
- wtk_interface
99
- c_api_interface
100
- cpp_api_interface
97
+ forge_backend_interface
98
+ forge_wtk_interface
99
+ forge_c_api_interface
100
+ forge_cpp_api_interface
101
101
)
102
102
if (FG_ENABLE_HUNTER)
103
103
target_link_libraries (${BackendTarget} PRIVATE freetype::freetype)
Original file line number Diff line number Diff line change @@ -5,27 +5,27 @@ else ()
5
5
find_package (glfw3)
6
6
endif ()
7
7
8
- add_library (wtk_interface INTERFACE )
8
+ add_library (forge_wtk_interface INTERFACE )
9
9
10
- target_include_directories (wtk_interface
10
+ target_include_directories (forge_wtk_interface
11
11
INTERFACE
12
12
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR} /src/backend/opengl>
13
13
)
14
14
15
- target_sources (wtk_interface
15
+ target_sources (forge_wtk_interface
16
16
INTERFACE
17
17
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /window.hpp>
18
18
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /window.cpp>
19
19
)
20
20
21
- target_link_libraries (wtk_interface INTERFACE glfw)
21
+ target_link_libraries (forge_wtk_interface INTERFACE glfw)
22
22
23
23
if (NOT BUILD_SHARED_LIBS )
24
- install (TARGETS wtk_interface EXPORT ForgeTargets)
24
+ install (TARGETS forge_wtk_interface EXPORT ForgeTargets)
25
25
endif ()
26
26
27
27
if (WIN32 )
28
28
install (FILES $<TARGET_FILE:glfw>
29
29
DESTINATION ${FG_INSTALL_BIN_DIR}
30
30
COMPONENT dependencies)
31
- endif ()
31
+ endif ()
Original file line number Diff line number Diff line change 5
5
find_package (SDL2)
6
6
endif ()
7
7
8
- add_library (wtk_interface INTERFACE )
8
+ add_library (forge_wtk_interface INTERFACE )
9
9
10
- target_include_directories (wtk_interface
10
+ target_include_directories (forge_wtk_interface
11
11
INTERFACE
12
12
$<BUILD_INTERFACE: ${CMAKE_SOURCE_DIR} /src/backend/opengl>
13
13
)
14
14
15
- target_sources (wtk_interface
15
+ target_sources (forge_wtk_interface
16
16
INTERFACE
17
17
$<BUILD_INTERFACE: ${CMAKE_CURRENT_SOURCE_DIR} /window.hpp>
18
18
$<BUILD_INTERFACE: ${CMAKE_CURRENT_SOURCE_DIR} /window.cpp>
19
19
)
20
20
21
- target_link_libraries (wtk_interface INTERFACE SDL2::SDL2)
21
+ target_link_libraries (forge_wtk_interface INTERFACE SDL2::SDL2)
22
22
23
23
if (NOT BUILD_SHARED_LIBS )
24
- install (TARGETS wtk_interface EXPORT ForgeTargets)
24
+ install (TARGETS forge_wtk_interface EXPORT ForgeTargets)
25
25
endif ()
26
26
27
27
if (WIN32 )
28
28
install (FILES $<TARGET_FILE:SDL2::SDL2>
29
29
DESTINATION ${FG_INSTALL_BIN_DIR}
30
30
COMPONENT dependencies)
31
- endif ()
31
+ endif ()
You can’t perform that action at this time.
0 commit comments