2023-08-06 08:48:11 -04:00
|
|
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
if (WIN32)
|
|
|
|
add_library(novus-common SHARED)
|
|
|
|
else()
|
|
|
|
add_library(novus-common STATIC)
|
|
|
|
endif()
|
2023-12-10 06:51:33 -05:00
|
|
|
target_sources(novus-common
|
|
|
|
PRIVATE
|
2023-09-23 15:45:38 -04:00
|
|
|
include/aboutdata.h
|
2023-07-09 10:54:27 -04:00
|
|
|
include/filecache.h
|
2024-04-18 18:42:36 -04:00
|
|
|
include/filetypes.h
|
2023-10-10 18:09:01 -04:00
|
|
|
include/novusmainwindow.h
|
2023-10-13 15:36:36 -04:00
|
|
|
include/quaternionedit.h
|
2023-09-23 15:21:36 -04:00
|
|
|
include/settings.h
|
2023-10-13 15:36:36 -04:00
|
|
|
include/vec3edit.h
|
2023-12-10 06:51:33 -05:00
|
|
|
|
2023-09-23 15:45:38 -04:00
|
|
|
src/aboutdata.cpp
|
2023-09-23 15:21:36 -04:00
|
|
|
src/filecache.cpp
|
2024-04-18 18:42:36 -04:00
|
|
|
src/filetypes.cpp
|
2023-10-10 18:09:01 -04:00
|
|
|
src/novusmainwindow.cpp
|
2023-10-13 15:36:36 -04:00
|
|
|
src/quaternionedit.cpp
|
2023-10-10 17:16:11 -04:00
|
|
|
src/settings.cpp
|
2023-10-13 15:36:36 -04:00
|
|
|
src/vec3edit.cpp)
|
2023-12-10 06:51:33 -05:00
|
|
|
target_include_directories(novus-common
|
|
|
|
PUBLIC
|
2023-07-08 10:33:12 -04:00
|
|
|
include
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_BINARY_DIR})
|
2023-12-09 21:51:57 -05:00
|
|
|
target_link_libraries(novus-common
|
|
|
|
PUBLIC
|
|
|
|
Physis::Physis
|
|
|
|
KF6::CoreAddons
|
|
|
|
KF6::ConfigCore
|
|
|
|
KF6::XmlGui
|
2024-02-04 15:04:01 -05:00
|
|
|
KF6::I18n
|
2023-12-09 21:51:57 -05:00
|
|
|
Qt6::Core
|
2024-04-24 17:39:43 -04:00
|
|
|
Qt6::Widgets
|
|
|
|
glm::glm)
|
2024-02-04 15:36:08 -05:00
|
|
|
target_compile_definitions(novus-common PRIVATE TRANSLATION_DOMAIN="novus")
|
2024-04-24 22:31:40 -04:00
|
|
|
set_target_properties(novus-common PROPERTIES
|
|
|
|
EXPORT_NAME NovusCommon
|
|
|
|
)
|
|
|
|
ecm_generate_export_header(novus-common
|
|
|
|
BASE_NAME NovusCommon
|
|
|
|
VERSION 1.0.0
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(novus-common PUBLIC "$<BUILD_INTERFACE:${novus-common_INCLUDE_DIRS}>")
|
2023-12-09 21:51:57 -05:00
|
|
|
|
|
|
|
add_library(Novus::Common ALIAS novus-common)
|
2024-04-24 22:31:40 -04:00
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
install(FILES $<TARGET_RUNTIME_DLLS:novus-common> DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
endif()
|