add support for whaterver maryam is useing

This commit is contained in:
Carl Philipp Klemm
2023-02-10 14:19:14 +01:00
parent c78fa5bd42
commit 551e30b098
3 changed files with 71 additions and 144 deletions

View File

@ -1,16 +1,15 @@
cmake_minimum_required(VERSION 3.0)
project(mdaptoeis)
project(dataformaters)
set(SRC_FILES
src/main.cpp
set(COMMON_SRC_FILES
src/tokenize.cpp
src/common.cpp
)
add_executable(${PROJECT_NAME} ${SRC_FILES})
target_link_libraries( ${PROJECT_NAME} -leisgenerator)
target_include_directories(${PROJECT_NAME} PRIVATE)
target_compile_options(${PROJECT_NAME} PRIVATE
set(COMMON_LINK_LIBRARIES -leisgenerator)
add_compile_options(
"-Wall"
"-Wno-reorder"
"-Wfatal-errors"
@ -19,8 +18,22 @@ target_compile_options(${PROJECT_NAME} PRIVATE
"-g"
"-fno-strict-aliasing"
)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
add_executable(madaptoeis ${COMMON_SRC_FILES} src/madap.cpp)
target_link_libraries(madaptoeis ${COMMON_LINK_LIBRARIES})
set_property(TARGET madaptoeis PROPERTY CXX_STANDARD 17)
install(TARGETS madaptoeis RUNTIME DESTINATION bin)
add_executable(relaxistoeis ${COMMON_SRC_FILES} src/relaxis.cpp)
target_link_libraries(relaxistoeis ${COMMON_LINK_LIBRARIES} -lrelaxisloaderpp)
set_property(TARGET relaxistoeis PROPERTY CXX_STANDARD 17)
install(TARGETS relaxistoeis RUNTIME DESTINATION bin)
add_executable(maryamtoeis ${COMMON_SRC_FILES} src/maryam.cpp)
target_link_libraries(maryamtoeis ${COMMON_LINK_LIBRARIES})
set_property(TARGET maryamtoeis PROPERTY CXX_STANDARD 17)
install(TARGETS maryamtoeis RUNTIME DESTINATION bin)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)