-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (47 loc) · 1.46 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
cmake_minimum_required (VERSION 3.13)
project(AkaEditor)
# Include Aka
add_subdirectory(lib/Aka)
add_executable(AkaEditor
"src/main.cpp"
"src/Editor.cpp"
"src/Importer/AssimpImporter.cpp"
"src/Editor/SceneEditorLayer.cpp"
"src/Editor/AssetBrowserEditorLayer.cpp"
"src/Editor/InfoEditorLayer.cpp"
"src/Editor/PerformanceEditorLayer.cpp"
"src/Editor/AssetViewerEditorLayer.cpp"
"src/Editor/AssetViewer/AssetViewer.cpp"
"src/Editor/AssetViewer/StaticMeshViewer.cpp"
"src/Editor/AssetViewer/SceneViewer.cpp"
"src/Editor/AssetViewer/TextureViewer.cpp"
"src/Editor/EditorLayer.cpp"
"src/Editor/Modal/FileModal.cpp"
"src/Editor/Modal/ImportModal.cpp"
"src/Component/CustomComponent.cpp"
"src/Component/RotatorComponent.cpp"
)
# ASSIMP
set(ZLIB_LIBRARIES zlibstatic)
set(ENABLE_BOOST_WORKAROUND ON)
set(BUILD_STATIC_LIB ON)
set(BUILD_ASSIMP_TOOLS OFF)
set(BUILD_ASSIMP_VIEW OFF)
set(ASSIMP_BUILD_STATIC_LIB ON)
set(ASSIMP_BUILD_TESTS OFF)
add_subdirectory(lib/assimp)
target_include_directories(AkaEditor PUBLIC lib/assimp lib/IconCppHeaders)
target_link_libraries(AkaEditor assimp)
target_link_libraries(AkaEditor Aka)
#add_custom_command(
# TARGET AkaGame POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_if_different
# "${PROJECT_SOURCE_DIR}/lib/Aka/lib/glew/bin/glew32.dll"
# $<TARGET_FILE_DIR:AkaGame>
#)
#add_custom_command(
# TARGET AkaGame POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_directory
# ${PROJECT_SOURCE_DIR}/asset
# $<TARGET_FILE_DIR:AkaGame>/asset
#)