##// END OF EJS Templates
Add the cmake to permits to do cpack to get a standalone installer on Windows....
Add the cmake to permits to do cpack to get a standalone installer on Windows. This one use NSIS and windeployqt. To get the installer please do : cmake, make, cmake cpack. The second cmake is necessary because windeployqt needs the exe file that exists only at the end of the make process

File last commit:

r50:f3ae97a0dd83
r51:a93b95151285
Show More
sciqlop_applications.cmake
56 lines | 1.5 KiB | text/x-cmake | CMakeLexer
/ cmake / sciqlop_applications.cmake
#
# Sciqlop_modules.cmake
#
# Set ouptut directories
#
SET (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist)
SET (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist)
IF (UNIX)
SET (CONFIG_OUTPUT_PATH $ENV{HOME}/.config/QtProject)
ELSEIF(WIN32)
SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist/app/QtProject)
ELSE()
SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist)
ENDIF()
if(BUILD_TESTS)
INCLUDE ("cmake/sciqlop_code_coverage.cmake")
APPEND_COVERAGE_COMPILER_FLAGS()
endif(BUILD_TESTS)
#
# Compile the diffents modules
#
set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}")
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core")
set(sciqlop-gui_DIR "${CMAKE_SOURCE_DIR}/gui/cmake")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-gui_DIR}")
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/gui")
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app")
# LOGGER
set(QTLOGGING_INI_FILE "${CMAKE_SOURCE_DIR}/config/QtProject/qtlogging.ini")
FILE(COPY ${QTLOGGING_INI_FILE} DESTINATION ${CONFIG_OUTPUT_PATH})
#
# Code formatting
#
# Vera++ exclusion files
LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt)
#SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
INCLUDE ("cmake/sciqlop_formatting.cmake")
#
# Documentation generation
#
INCLUDE ("cmake/sciqlop_doxygen.cmake")
#
# Source code analysis
#
INCLUDE ("cmake/sciqlop_code_analysis.cmake")
INCLUDE ("cmake/sciqlop_code_cppcheck.cmake")