2018-11-07 16:48:43 -06:00
|
|
|
# -*- explicit-buffer-name: "CMakeLists.txt<unittests/src>" -*-
|
|
|
|
|
|
|
|
include_directories ( ${CORIOLIS_INCLUDE_DIR}
|
|
|
|
${HURRICANE_INCLUDE_DIR}
|
|
|
|
${UTILITIES_INCLUDE_DIR}
|
2021-11-21 17:05:48 -06:00
|
|
|
${QtX_INCLUDE_DIRS}
|
2018-11-07 16:48:43 -06:00
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
set ( mocincludes
|
|
|
|
)
|
|
|
|
set ( cpps unittests.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
qtX_wrap_cpp ( mocCpps ${mocincludes} )
|
|
|
|
|
|
|
|
if(NOT WITH_QT5)
|
|
|
|
list ( APPEND cpps ${mocCpps} )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable ( unittests ${cpps} )
|
|
|
|
target_link_libraries ( unittests ${CORIOLIS_PYTHON_LIBRARIES}
|
|
|
|
${CORIOLIS_LIBRARIES}
|
|
|
|
${HURRICANE_GRAPHICAL_LIBRARIES}
|
2021-11-21 17:05:48 -06:00
|
|
|
${HURRICANE_PYTHON_LIBRARIES}
|
2018-11-07 16:48:43 -06:00
|
|
|
${HURRICANE_LIBRARIES}
|
|
|
|
${BOOKSHELF_LIBRARY}
|
|
|
|
${AGDS_LIBRARY}
|
|
|
|
${CIF_LIBRARY}
|
|
|
|
${CONFIGURATION_LIBRARY}
|
|
|
|
${UTILITIES_LIBRARY}
|
|
|
|
${LEFDEF_LIBRARIES}
|
|
|
|
${OA_LIBRARIES}
|
|
|
|
${QtX_LIBRARIES}
|
|
|
|
${Boost_LIBRARIES}
|
2022-12-14 18:37:06 -06:00
|
|
|
|
2018-11-07 16:48:43 -06:00
|
|
|
-lutil
|
2021-11-21 17:05:48 -06:00
|
|
|
${BZIP2_LIBRARIES}
|
2018-11-07 16:48:43 -06:00
|
|
|
${LIBXML2_LIBRARIES}
|
|
|
|
${LIBEXECINFO_LIBRARIES}
|
|
|
|
${LIBBFD_LIBRARIES}
|
|
|
|
)
|
|
|
|
install ( TARGETS unittests DESTINATION bin )
|
|
|
|
|