17 lines
797 B
CMake
17 lines
797 B
CMake
project(Widgets)
|
|
|
|
### ---------------------- Static Library --------------------- ###
|
|
file(GLOB SOURCES "./private/*.cpp" "./private/*/*.cpp")
|
|
file(GLOB HEADERS "./public/*.hpp")
|
|
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ./public/ ./public/layouts ./public/mangers ./public/widgets)
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC Math Graphics Imgui)
|
|
|
|
### -------------------------- Applications -------------------------- ###
|
|
|
|
add_executable(WidgetsExample examples/Example.cpp)
|
|
target_link_libraries(WidgetsExample ${PROJECT_NAME} ${GLEW_LIB})
|
|
target_include_directories(WidgetsExample PUBLIC ../Externals/glfw/include ${GLEW_INCLUDE_DIR})
|
|
|
|
file(COPY "examples/Font.ttf" DESTINATION "${CMAKE_BINARY_DIR}/${PROJECT_NAME}/rsc")
|