23 lines
1 KiB
CMake
23 lines
1 KiB
CMake
project(3DEditor)
|
|
|
|
### ---------------------- Externals --------------------- ###
|
|
set(BINDINGS_INCLUDE ../Externals/glfw/include ../Externals)
|
|
set(BINDINGS_LIBS glfw Imgui OpenImageDenoise)
|
|
|
|
### ---------------------- Static Library --------------------- ###
|
|
file(GLOB SOURCES "./private/*.cpp" "./private/*/*.cpp")
|
|
file(GLOB HEADERS "./public/*.hpp" "./public/*/*.hpp")
|
|
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ./public/ ${BINDINGS_INCLUDE} ./ext/)
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC Widgets RasterRender RayTracer)
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ${BINDINGS_LIBS})
|
|
|
|
### -------------------------- Applications -------------------------- ###
|
|
file(GLOB APP_SOURCES "./applications/*.cpp")
|
|
add_executable(3DEditorApp ${APP_SOURCES})
|
|
target_link_libraries(3DEditorApp ${PROJECT_NAME})
|
|
|
|
file(COPY "rsc" DESTINATION "${CMAKE_BINARY_DIR}/${PROJECT_NAME}/")
|
|
file(COPY "rsc/Font.ttf" DESTINATION "${CMAKE_BINARY_DIR}/${PROJECT_NAME}/")
|