Skip to content

Commit

Permalink
Merge pull request #78 from jcfr/update-build-system
Browse files Browse the repository at this point in the history
Update build system
  • Loading branch information
leochan2009 committed Dec 4, 2017
2 parents 90771fe + fc16632 commit 98019cf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
cmake_minimum_required(VERSION 2.8)

if(POLICY CMP0048)
cmake_policy(SET CMP0048 NEW) # CMake 3.0.0
endif()
cmake_minimum_required(VERSION 3.5)

set(MODULE_NAME "OpenIGTLinkIF")
set(MODULE_TITLE "OpenIGTLink I/F")

string(TOUPPER ${MODULE_NAME} MODULE_NAME_UPPER)

#-----------------------------------------------------------------------------
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
if(Slicer_SOURCE_DIR)
find_package(OpenIGTLink REQUIRED)
include(${OpenIGTLink_USE_FILE})
else()
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
endif()

# --------------------------------------------------------------------------
# Check if version 2 protocol is available
Expand Down Expand Up @@ -98,7 +99,6 @@ slicerMacroBuildQtModule(
RESOURCES ${MODULE_RESOURCES}
)


if(BUILD_TESTING)
#add_subdirectory(Testing)
endif()

0 comments on commit 98019cf

Please sign in to comment.