Skip to content
Snippets Groups Projects
Commit 919ab61a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMake GUI further simplify

parent cdaae5bc
No related branches found
No related tags found
1 merge request!740CMake: simplify code, simplify installation paths
......@@ -46,7 +46,7 @@ add_executable(${executable_name}
# -----------------------------------------------------------------------------
# dependencies
# -----------------------------------------------------------------------------
target_link_libraries(${executable_name} BornAgainGUI ${Boost_LIBRARIES})
target_link_libraries(${executable_name} PRIVATE BornAgainGUI ${Boost_LIBRARIES})
target_include_directories(${executable_name} PRIVATE ${CMAKE_SOURCE_DIR})
# -----------------------------------------------------------------------------
......
......@@ -42,10 +42,6 @@ endif()
add_library(${library_name} SHARED ${source_files} ${RC_SRCS} ${include_files} ${form_files})
#set_target_properties(${library_name} PROPERTIES PREFIX ${libprefix} SUFFIX ${libsuffix})
# exposing library component and list of include directories outside
set(${library_name}_INCLUDE_DIRS ${include_dirs})
set(${library_name}_LIBRARY ${library_name})
# switch OFF Qt debug output in any configuration except DEBUG
target_compile_definitions(${library_name} PUBLIC $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT>)
......@@ -113,7 +109,5 @@ endif()
# --- Transmit variables for use in tests
set(BornAgainGUI_INCLUDE_DIRS ${BornAgainGUI_INCLUDE_DIRS} PARENT_SCOPE)
set(ba3d_INCLUDE_DIRS ${ba3d_INCLUDE_DIRS} PARENT_SCOPE)
set(ba3d_LIBRARY ${ba3d_LIBRARY} PARENT_SCOPE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment