Commit 323d99f2 authored by fmg005's avatar fmg005

Changed target name to clasim

parent c1813837
cmake_minimum_required(VERSION 3.9.4)
project(cmd)
project(clasim)
# use dpkg -L libconfig++-dev to find the location of libconfig.h++ and libconfig++.a
find_path(CONFIG++_INCLUDE_DIR libconfig.h++ <libconfig.h++ location>)
......@@ -24,23 +24,23 @@ set(MY_SOURCE_FILES
)
add_executable(cmd ${MY_SOURCE_FILES})
add_executable(clasim ${MY_SOURCE_FILES})
#cmd depends on pulse this will call will give you access to pulse directories
#needed by cmd
#clasim depends on pulse this will call will give you access to pulse directories
#needed by clasim
find_package(Pulse REQUIRED NO_MODULE)
#include directories
target_include_directories(cmd PRIVATE ${Pulse_INCLUDE_DIRS})
target_include_directories(cmd PRIVATE ${CONFIG++_INCLUDE_DIR})
target_include_directories(clasim PRIVATE ${Pulse_INCLUDE_DIRS})
target_include_directories(clasim PRIVATE ${CONFIG++_INCLUDE_DIR})
# *** include your simulation include directories here
target_include_directories(cmd PRIVATE simsrc/mcps2018/include/)
target_include_directories(clasim PRIVATE simsrc/mcps2018/include/)
#libraries
target_link_libraries(cmd debug "${Pulse_DEBUG_LIBS}")
target_link_libraries(cmd optimized "${Pulse_LIBS}")
target_link_libraries(cmd optimized "${CONFIG++_LIBRARY}")
target_link_libraries(clasim debug "${Pulse_DEBUG_LIBS}")
target_link_libraries(clasim optimized "${Pulse_LIBS}")
target_link_libraries(clasim optimized "${CONFIG++_LIBRARY}")
install(TARGETS cmd RUNTIME DESTINATION ${Pulse_INSTALL}/bin)
install(TARGETS clasim RUNTIME DESTINATION ${Pulse_INSTALL}/bin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment