Skip to content
Snippets Groups Projects
Commit bfbf60be authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Set directory to sources

parent d84b8c31
No related branches found
No related tags found
1 merge request!49Resolve "Finish installation and usage instruction on the documentation"
......@@ -4,9 +4,9 @@ project(dune-copasi CXX)
include(GNUInstallDirs)
cmake_policy(SET CMP0074 NEW)
# if(POLICY CMP0087)
# cmake_policy(SET CMP0087 OLD)
# endif()
if(POLICY CMP0087)
cmake_policy(SET CMP0087 OLD)
endif()
# define cmake options
option(DUNE_COPASI_SD_EXECUTABLE
......
......@@ -5,7 +5,7 @@ target_sources(dune-copasi
)
# set up single-domain executable
add_executable(singledomain-exec EXCLUDE_FROM_ALL dune_copasi_sd.cc)
add_executable(singledomain-exec EXCLUDE_FROM_ALL "${CMAKE_CURRENT_SOURCE_DIR}/dune_copasi_sd.cc")
target_link_libraries(singledomain-exec PRIVATE dune-copasi)
if(DUNE_COPASI_SD_EXECUTABLE)
set_target_properties(singledomain-exec PROPERTIES EXCLUDE_FROM_ALL OFF)
......@@ -18,7 +18,7 @@ endif()
set_property(TARGET singledomain-exec PROPERTY RUNTIME_OUTPUT_NAME dune-copasi-sd)
# set up multi-domain executable
add_executable(multidomain-exec EXCLUDE_FROM_ALL dune_copasi_md.cc)
add_executable(multidomain-exec EXCLUDE_FROM_ALL "${CMAKE_CURRENT_SOURCE_DIR}/dune_copasi_md.cc")
target_link_libraries(multidomain-exec PRIVATE dune-copasi)
if(DUNE_COPASI_MD_EXECUTABLE)
set_target_properties(multidomain-exec PROPERTIES EXCLUDE_FROM_ALL OFF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment