Menu

[a01819]: / compiller / CMakeLists.txt  Maximize  Restore  History

Download this file

24 lines (22 with data), 870 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 2.8.11)
project(vlpc)
set(wxWidgets_USE_DEBUG OFF)
set(wxWidgets_EXCLUDE_COMMON_LIBRARIES TRUE)
find_package(wxWidgets 3.0 COMPONENTS base REQUIRED)
include(${wxWidgets_USE_FILE})
set(SRCS main.cpp Compiller.cpp IncludeFile.cpp)
add_executable(vlpc ${SRCS})
target_link_libraries(vlpc ${wxWidgets_LIBRARIES})
install (TARGETS vlpc DESTINATION bin)
enable_testing()
set(TEST_FILES bank2.log chartres.log complex.log differ.log geo.log graphcol.log mat.log merge.log roundcm.log treegen.log winograd.log )
FOREACH (TEST_FILE ${TEST_FILES})
add_test(
NAME "compile_${TEST_FILE}"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../examples/
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/vlpc ${TEST_FILE} )
ENDFOREACH(TEST_FILE)
add_test(
NAME "md5check"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../examples/
COMMAND md5sum -c md5sums )