comparison CMakeLists.txt @ 2035:9dd1ee869b88

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 Jun 2016 13:28:16 +0200
parents 07f2ba3677df
children 99e70e9b05ad
comparison
equal deleted inserted replaced
2034:07f2ba3677df 2035:9dd1ee869b88
586 ModalityWorklists PROPERTIES 586 ModalityWorklists PROPERTIES
587 VERSION ${ORTHANC_VERSION} 587 VERSION ${ORTHANC_VERSION}
588 SOVERSION ${ORTHANC_VERSION} 588 SOVERSION ${ORTHANC_VERSION}
589 ) 589 )
590 590
591 set_source_files_properties(${ORTHANC_ALL_SOURCES}
592 PROPERTIES COMPILE_FLAGS -pedantic
593 )
594
591 install( 595 install(
592 TARGETS ModalityWorklists 596 TARGETS ModalityWorklists
593 RUNTIME DESTINATION lib # Destination for Windows 597 RUNTIME DESTINATION lib # Destination for Windows
594 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux 598 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
595 ) 599 )
602 ##################################################################### 606 #####################################################################
603 607
604 if (BUILD_RECOVER_COMPRESSED_FILE) 608 if (BUILD_RECOVER_COMPRESSED_FILE)
605 set(RECOVER_COMPRESSED_SOURCES 609 set(RECOVER_COMPRESSED_SOURCES
606 Resources/Samples/Tools/RecoverCompressedFile.cpp 610 Resources/Samples/Tools/RecoverCompressedFile.cpp
611
612 ${CMAKE_SOURCE_DIR}/Core/ChunkedBuffer.cpp
613 ${CMAKE_SOURCE_DIR}/Core/Compression/DeflateBaseCompressor.cpp
614 ${CMAKE_SOURCE_DIR}/Core/Compression/ZlibCompressor.cpp
615 ${CMAKE_SOURCE_DIR}/Core/Enumerations.cpp
616 ${CMAKE_SOURCE_DIR}/Core/Logging.cpp
617 ${CMAKE_SOURCE_DIR}/Core/Toolbox.cpp
618 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/base64/base64.cpp
619 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/md5/md5.c
620
621 ${BOOST_SOURCES}
622 ${JSONCPP_SOURCES}
623 ${PUGIXML_SOURCES}
624 ${RECOVER_COMPRESSED_SOURCES}
625 ${ZLIB_SOURCES}
607 ) 626 )
608 627
609 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 628 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
610 execute_process( 629 execute_process(
611 COMMAND 630 COMMAND
623 list(APPEND RECOVER_COMPRESSED_SOURCES 642 list(APPEND RECOVER_COMPRESSED_SOURCES
624 ${AUTOGENERATED_DIR}/OrthancRecoverCompressedFile.rc 643 ${AUTOGENERATED_DIR}/OrthancRecoverCompressedFile.rc
625 ) 644 )
626 endif() 645 endif()
627 646
628 add_executable(OrthancRecoverCompressedFile 647 add_executable(OrthancRecoverCompressedFile ${RECOVER_COMPRESSED_SOURCES})
629 ${RECOVER_COMPRESSED_SOURCES}
630 ${ZLIB_SOURCES}
631 ${BOOST_SOURCES}
632 ${JSONCPP_SOURCES}
633 ${PUGIXML_SOURCES}
634 ${CMAKE_SOURCE_DIR}/Core/ChunkedBuffer.cpp
635 ${CMAKE_SOURCE_DIR}/Core/Logging.cpp
636 ${CMAKE_SOURCE_DIR}/Core/Enumerations.cpp
637 ${CMAKE_SOURCE_DIR}/Core/Toolbox.cpp
638 ${CMAKE_SOURCE_DIR}/Core/Compression/DeflateBaseCompressor.cpp
639 ${CMAKE_SOURCE_DIR}/Core/Compression/ZlibCompressor.cpp
640 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/md5/md5.c
641 ${CMAKE_SOURCE_DIR}/Resources/ThirdParty/base64/base64.cpp
642 )
643 648
644 install( 649 install(
645 TARGETS OrthancRecoverCompressedFile 650 TARGETS OrthancRecoverCompressedFile
646 RUNTIME DESTINATION bin 651 RUNTIME DESTINATION bin
647 ) 652 )