Updating CMake config for tests

parent 7f35eec6
......@@ -7,6 +7,10 @@ list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
if( NOT DEFINED ITA_VANET_WITH_TESTS )
set( ITA_VANET_WITH_TESTS OFF CACHE BOOL "Build VANet with tests" )
endif( NOT DEFINED ITA_VANET_WITH_TESTS )
if( NOT DEFINED ITA_VA_BUILD_STATIC )
set( ITA_VA_BUILD_STATIC OFF CACHE BOOL "Build static VA libs" )
endif( NOT DEFINED ITA_VA_BUILD_STATIC )
......@@ -63,5 +67,7 @@ if( ITA_VANET_INSTALL_WITH_DLLS OR ITA_VA_INSTALL_WITH_DLLS )
endif()
# tests
set( VANET_COMMON_BUILD TRUE )
add_subdirectory( "${CMAKE_CURRENT_SOURCE_DIR}/tests" )
if( ITA_VA_WITH_TESTS OR ITA_VANET_WITH_TESTS )
set( VANET_COMMON_BUILD TRUE )
add_subdirectory( "${CMAKE_CURRENT_SOURCE_DIR}/tests" )
endif( ITA_VA_WITH_TESTS OR ITA_VANET_WITH_TESTS )
......@@ -39,4 +39,4 @@ vista_configure_app( VANetClientTest )
vista_install( VANetClientTest )
vista_create_default_info_file( VANetClientTest )
set_property( TARGET VANetClientTest PROPERTY FOLDER "ITATests/VANet" )
set_property( TARGET VANetClientTest PROPERTY FOLDER "VA/Tests/VANet" )
......@@ -21,4 +21,4 @@ vista_configure_app( VANetServerTest )
vista_install( VANetServerTest )
vista_create_default_info_file( VANetServerTest )
set_property( TARGET VANetServerTest PROPERTY FOLDER "ITATests/VANet" )
set_property( TARGET VANetServerTest PROPERTY FOLDER "VA/Tests/VANet" )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment