CMakeLists.txt 1.66 KB
Newer Older
1
cmake_minimum_required( VERSION 2.9 )
2 3 4 5 6 7 8 9 10 11 12 13 14 15

project( ITAAcousticVisualization )


# example how to set ExternalLibs folder for an entire project (without ENV var)
list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../VistaCMakeCommon" )

# ... or with ENV variable
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )

include( VistaCommon )

set( ITA_ACOUSTIC_VISUALIZATION_COMMON_BUILD TRUE )

16 17 18 19 20 21 22 23
if( NOT DEFINED ITA_ACOUSTIC_VISUALIZATION_WITH_APPS )
	set( ITA_ACOUSTIC_VISUALIZATION_WITH_APPS ON CACHE BOOL "Build ITA acoustic visualization applications" )
endif( )

if( NOT DEFINED ITA_ACOUSTIC_VISUALIZATION_WITH_TESTS )
	set( ITA_ACOUSTIC_VISUALIZATION_WITH_TESTS ON CACHE BOOL "Build ITA acoustic visualization tests" )
endif( )

24 25 26
# Some global settings for static/shared library generation
if( NOT DEFINED ITA_ACOUSTIC_VISUALIZATION_BUILD_STATIC )
	set( ITA_ACOUSTIC_VISUALIZATION_BUILD_STATIC OFF CACHE BOOL "Build all ITA acoustic visualization libs in static mode" )
27
endif( )
28 29 30

if( NOT DEFINED ITA_VISTA_BUILD_STATIC )
	set( ITA_VISTA_BUILD_STATIC OFF CACHE BOOL "Build against static ViSTA libraries" )
31 32 33 34 35
endif( )

if( NOT DEFINED ITA_CORE_LIBS_BUILD_STATIC )
	set( ITA_CORE_LIBS_BUILD_STATIC OFF CACHE BOOL "Build against static ITA core libs" )
endif( )
36

37 38 39
if( NOT DEFINED ITA_GEOMETRICAL_ACOUSTICS_BUILD_STATIC )
	set( ITA_GEOMETRICAL_ACOUSTICS_BUILD_STATIC OFF CACHE BOOL "Build against static ITA geometrical acoustics libs" )
endif( )
40 41 42 43 44 45 46

# Compiler
if( MSVC )
	add_definitions( "/wd4251 /W4 -D_CRT_SECURE_NO_WARNINGS" )
endif()


47
# ITAAcousticVisualization submodules
48 49 50
add_subdirectory( ITAQtWidgets )
#add_subdirectory( ITAFox )
#add_subdirectory( ITAVTK )
51
add_subdirectory( ITAMess )