CMakeLists.txt 1.75 KB
Newer Older
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
1 2 3 4 5 6 7 8 9 10 11 12 13
cmake_minimum_required( VERSION 2.8 )

project( ITAGeometricalAcoustics )


# 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 )

Jonas Stienen's avatar
Jonas Stienen committed
14
set( ITA_GEOMETRICAL_ACOUSTICS_COMMON_BUILD TRUE )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
15

Jonas Stienen's avatar
Jonas Stienen committed
16
if( NOT DEFINED ITA_GEOMETRICAL_ACOUSTICS_WITH_APPS )
17
	set( ITA_GEOMETRICAL_ACOUSTICS_WITH_APPS OFF CACHE BOOL "Build ITA geometrical acoustic with applications" )
18
endif( )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
19

Jonas Stienen's avatar
Jonas Stienen committed
20
if( NOT DEFINED ITA_GEOMETRICAL_ACOUSTICS_WITH_TESTS )
21 22 23 24 25
	set( ITA_GEOMETRICAL_ACOUSTICS_WITH_TESTS OFF CACHE BOOL "Build ITA geometrical acoustic with tests" )
endif( )

if( NOT DEFINED ITA_GEOMETRICAL_ACOUSTICS_WITH_BENCHMARKS )
	set( ITA_GEOMETRICAL_ACOUSTICS_WITH_BENCHMARKS OFF CACHE BOOL "Build ITA geometrical acoustic with benchmarks" )
26
endif( )
27 28 29


# Some global settings for static/shared library generation
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
30 31
if( NOT DEFINED ITA_VISTA_BUILD_STATIC )
	set( ITA_VISTA_BUILD_STATIC OFF CACHE BOOL "Build against static ViSTA libraries" )
32 33 34 35 36
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( )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
37

Jonas Stienen's avatar
Jonas Stienen committed
38
if( NOT DEFINED ITA_GEOMETRICAL_ACOUSTICS_BUILD_STATIC )
39 40
	set( ITA_GEOMETRICAL_ACOUSTICS_BUILD_STATIC OFF CACHE BOOL "Build all ITA geometrical acoustics libs in static mode" )
endif( )
41

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
42 43 44 45

# Compiler
if( MSVC )
	add_definitions( "/wd4251 /W4 -D_CRT_SECURE_NO_WARNINGS" )
46
endif( )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
47 48 49


# ITAGeometricalAcoustics submodules
50
add_subdirectory( "ITAGeo" )
51 52 53 54
add_subdirectory( "ITAPropagationPathSim" )
add_subdirectory( "ITAPropagationModels" )

if( ITA_GEOMETRICAL_ACOUSTICS_WITH_APPS )
55
	add_subdirectory( "apps/pidgeon" )
56
endif( )