[studio] Make all libraries and includes install correctly

This commit is contained in:
Gary Talent 2023-06-19 23:37:37 -05:00
parent 690935e4ec
commit d4eaade326
2 changed files with 17 additions and 25 deletions

View File

@ -22,6 +22,13 @@ target_include_directories(
../include
)
install(
DIRECTORY
../include/studioapp
DESTINATION
include
)
install(
TARGETS
StudioAppLib

View File

@ -12,18 +12,6 @@ add_library(
filedialog_nfd.cpp
)
if(NOT MSVC)
target_compile_options(Studio PUBLIC -Wsign-conversion)
endif()
install(
TARGETS
Studio
DESTINATION
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
target_include_directories(
Studio PUBLIC
../include
@ -42,19 +30,16 @@ target_link_libraries(
)
install(
FILES
../include/studio/configio.hpp
../include/studio/context.hpp
../include/studio/editor.hpp
../include/studio/filedialog.hpp
../include/studio/itemmaker.hpp
../include/studio/module.hpp
../include/studio/popup.hpp
../include/studio/project.hpp
../include/studio/studio.hpp
../include/studio/task.hpp
../include/studio/undostack.hpp
../include/studio/widget.hpp
TARGETS
Studio
DESTINATION
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(
DIRECTORY
../include/studio
DESTINATION
include/studio/
)