[calamares] Remove cruft from CMakeLists.txt
This commit is contained in:
parent
32ebb08788
commit
cc3b0b2859
@ -11,22 +11,18 @@ set( calamaresSources
|
|||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/../libcalamares
|
|
||||||
|
|
||||||
${CMAKE_SOURCE_DIR}/src/libcalamares
|
${CMAKE_SOURCE_DIR}/src/libcalamares
|
||||||
${CMAKE_SOURCE_DIR}/src//libcalamaresui
|
${CMAKE_SOURCE_DIR}/src/libcalamaresui
|
||||||
${CMAKE_SOURCE_DIR}
|
${CMAKE_BINARY_DIR}/src/libcalamares
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
include( CalamaresAddTranslations )
|
include( CalamaresAddTranslations )
|
||||||
add_calamares_translations( ${CALAMARES_TRANSLATION_LANGUAGES} )
|
add_calamares_translations( ${CALAMARES_TRANSLATION_LANGUAGES} )
|
||||||
|
|
||||||
set( final_src ${calamaresSources} ${calamaresRc} ${trans_outfile} )
|
add_executable( calamares_bin ${calamaresSources} ${calamaresRc} ${trans_outfile} )
|
||||||
|
target_include_directories( calamares_bin PRIVATE ${CMAKE_SOURCE_DIR} )
|
||||||
add_executable( calamares_bin ${final_src} )
|
|
||||||
set_target_properties(calamares_bin
|
set_target_properties(calamares_bin
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
ENABLE_EXPORTS TRUE
|
ENABLE_EXPORTS TRUE
|
||||||
@ -37,7 +33,7 @@ calamares_autouic( calamares_bin )
|
|||||||
|
|
||||||
target_link_libraries( calamares_bin
|
target_link_libraries( calamares_bin
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${CALAMARES_LIBRARIES}
|
calamares
|
||||||
calamaresui
|
calamaresui
|
||||||
Qt5::Core
|
Qt5::Core
|
||||||
Qt5::Widgets
|
Qt5::Widgets
|
||||||
@ -63,6 +59,6 @@ install( FILES ${CMAKE_SOURCE_DIR}/data/images/squid.svg
|
|||||||
|
|
||||||
if( BUILD_TESTING )
|
if( BUILD_TESTING )
|
||||||
add_executable( loadmodule testmain.cpp )
|
add_executable( loadmodule testmain.cpp )
|
||||||
target_link_libraries( loadmodule ${CALAMARES_LIBRARIES} Qt5::Core Qt5::Widgets calamaresui )
|
target_link_libraries( loadmodule PRIVATE Qt5::Core Qt5::Widgets calamares calamaresui )
|
||||||
# Don't install, it's just for enable_testing
|
# Don't install, it's just for enable_testing
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user