[f18679]: iAIDA / utilities / CMakeLists.txt Maximize Restore History

Download this file

CMakeLists.txt    35 lines (24 with data), 873 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# iAIDA/utilities
macro (setup exeName testString)
add_executable( ${exeName} ${exeName}.cpp)
TARGET_LINK_LIBRARIES( ${exeName} iAIDA ${EXTERNAL_LIBS})
add_test ( ${exeName} ${exeName} )
set_tests_properties ( ${exeName} PROPERTIES PASS_REGULAR_EXPRESSION ${testString} )
endmacro (setup)
# generic utilities
set ( utilFiles aida_convertTupleToCSV
aida_convertToXML
aida_showFile
)
foreach (util_ ${utilFiles} )
setup( ${util_} "That's it")
endforeach()
set( allutilities ${utilFiles} )
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
message("... utilities set up")
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
if ( ${IAIDA_INSTALL_utilities} MATCHES ON)
foreach(util_ ${utilFiles} )
install(PROGRAMS ${PROJECT_BINARY_DIR}/utilities/${util_} DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/iAIDA )
endforeach()
endif ( ${IAIDA_INSTALL_utilities} MATCHES ON)