mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
CMake: simplify writing qt.conf on Windows
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
b702e8e225
commit
f555fa787f
2 changed files with 6 additions and 18 deletions
|
@ -364,15 +364,9 @@ add_dependencies(subsurface_corelib version)
|
||||||
|
|
||||||
# add platform specific actions
|
# add platform specific actions
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
add_custom_command(
|
file(WRITE ${CMAKE_BINARY_DIR}/qt.conf "[Paths]
|
||||||
OUTPUT ${CMAKE_BINARY_DIR}/qt.conf
|
Prefix=.
|
||||||
COMMAND echo \"[Paths]\" > ${CMAKE_BINARY_DIR}/qt.conf \; echo \"Prefix=.\" >> ${CMAKE_BINARY_DIR}/qt.conf
|
")
|
||||||
)
|
|
||||||
add_custom_target(
|
|
||||||
generate_qtconf
|
|
||||||
DEPENDS ${CMAKE_BINARY_DIR}/qt.conf
|
|
||||||
)
|
|
||||||
add_dependencies(${SUBSURFACE_TARGET} generate_qtconf)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# build an automated html exporter
|
# build an automated html exporter
|
||||||
|
|
|
@ -114,15 +114,9 @@ if (COMMANDLINE AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
add_custom_command(
|
file(WRITE ${CMAKE_BINARY_DIR}/qt.conf "[Paths]
|
||||||
OUTPUT ${CMAKE_BINARY_DIR}/qt.conf
|
Prefix=.
|
||||||
COMMAND echo \"[Paths]\" > ${CMAKE_BINARY_DIR}/qt.conf \; echo \"Prefix=.\" >> ${CMAKE_BINARY_DIR}/qt.conf
|
")
|
||||||
)
|
|
||||||
add_custom_target(
|
|
||||||
generate_qtconf
|
|
||||||
DEPENDS ${CMAKE_BINARY_DIR}/qt.conf
|
|
||||||
)
|
|
||||||
add_dependencies(${SMTK_IMPORT_TARGET} generate_qtconf)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${SMTK_IMPORT_TARGET} smtk_import ${SMTK_LINK_LIBRARIES})
|
target_link_libraries(${SMTK_IMPORT_TARGET} smtk_import ${SMTK_LINK_LIBRARIES})
|
||||||
|
|
Loading…
Reference in a new issue