Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/CMakeLists.txt @ 18091

Last change on this file since 18091 was 17071, checked in by mkommend, 5 years ago

#2958: Merged 16266, 16269, 16274, 16276, 16277, 16285, 16286, 16287, 16289, 16293, 16296, 16297, 16298, 16333, 16334 into stable.

File size: 1.5 KB
Line 
1cmake_minimum_required(VERSION 3.0)
2
3project(
4    hl-native-interpreter
5    VERSION 0.1
6    DESCRIPTION "Native C++ interpreter for HeuristicLab symbolic expression trees"
7    LANGUAGES CXX
8)
9
10add_library(hl-native-interpreter SHARED src/interpreter.cpp)
11target_include_directories(hl-native-interpreter PRIVATE ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/lib)
12target_compile_features(hl-native-interpreter PRIVATE cxx_std_17)
13
14add_library(hl-native-interpreter-vdt SHARED src/interpreter.cpp)
15target_include_directories(hl-native-interpreter-vdt PRIVATE ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/lib)
16target_compile_features(hl-native-interpreter-vdt PRIVATE cxx_std_17)
17
18if(MSVC)
19    target_compile_options(hl-native-interpreter PRIVATE "/W4" "/Qvec-report:2" "/MT" "$<$<CONFIG:Release>:/O2>")
20    target_compile_options(hl-native-interpreter-vdt PRIVATE "/W4" "/Qvec-report:2" "/MT" "$<$<CONFIG:Release>:/O2>")
21    target_compile_definitions(hl-native-interpreter-vdt PRIVATE "USE_VDT")
22else()
23    target_compile_options(hl-native-interpreter PRIVATE "-Wall" "-Wextra" "-Werror" "-fopt-info-vec-optimized" "$<$<CONFIG:Release>:-O3;-march=x86-64>")
24    target_compile_options(hl-native-interpreter-vdt PRIVATE "-Wall" "-Wextra" "-Werror" "-fopt-info-vec-optimized" "$<$<CONFIG:Release>:-O3;-march=x86-64>")
25    target_compile_definitions(hl-native-interpreter-vdt PRIVATE "USE_VDT")
26    set_target_properties(hl-native-interpreter PROPERTIES PREFIX "")
27    set_target_properties(hl-native-interpreter-vdt PROPERTIES PREFIX "")
28endif()
Note: See TracBrowser for help on using the repository browser.