mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
split cmakelists
This commit is contained in:
8
src/cli/CMakeLists.txt
Normal file
8
src/cli/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
add_executable(clrsync_cli main.cpp)
|
||||
|
||||
target_include_directories(clrsync_cli PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
SYSTEM ${CMAKE_SOURCE_DIR}/lib
|
||||
)
|
||||
|
||||
target_link_libraries(clrsync_cli PRIVATE clrsync_core)
|
||||
21
src/core/CMakeLists.txt
Normal file
21
src/core/CMakeLists.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
set(CORE_SOURCES
|
||||
palette/color.cpp
|
||||
io/toml_file.cpp
|
||||
config/config.cpp
|
||||
utils.cpp
|
||||
version.cpp
|
||||
theme/theme_template.cpp
|
||||
)
|
||||
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
|
||||
add_library(clrsync_core SHARED ${CORE_SOURCES})
|
||||
|
||||
target_include_directories(clrsync_core PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
SYSTEM ${CMAKE_SOURCE_DIR}/lib
|
||||
)
|
||||
|
||||
target_compile_definitions(clrsync_core PUBLIC
|
||||
CLRSYNC_DATADIR=\"${CMAKE_INSTALL_FULL_DATADIR}/clrsync\"
|
||||
)
|
||||
41
src/gui/CMakeLists.txt
Normal file
41
src/gui/CMakeLists.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
set(GUI_SOURCES
|
||||
main.cpp
|
||||
color_scheme_editor.cpp
|
||||
template_editor.cpp
|
||||
palette_controller.cpp
|
||||
template_controller.cpp
|
||||
imgui_helpers.cpp
|
||||
imgui_helpers.hpp
|
||||
about_window.cpp
|
||||
settings_window.cpp
|
||||
font_loader.cpp
|
||||
${CMAKE_SOURCE_DIR}/lib/color_text_edit/TextEditor.cpp
|
||||
)
|
||||
|
||||
add_executable(clrsync_gui ${GUI_SOURCES})
|
||||
|
||||
target_include_directories(clrsync_gui PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
SYSTEM ${CMAKE_SOURCE_DIR}/lib
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(clrsync_gui PRIVATE
|
||||
clrsync_core
|
||||
glfw
|
||||
imgui
|
||||
OpenGL::GL
|
||||
)
|
||||
else()
|
||||
target_link_libraries(clrsync_gui PRIVATE
|
||||
clrsync_core
|
||||
imgui
|
||||
${GLFW_LIBRARIES}
|
||||
${WAYLAND_LIBS}
|
||||
X11
|
||||
Xrandr
|
||||
Xi
|
||||
Fontconfig::Fontconfig
|
||||
OpenGL::GL
|
||||
)
|
||||
endif()
|
||||
Reference in New Issue
Block a user