coriolis/vlsisapd/examples/openChams/cplusplus/cmake.ex

19 lines
662 B
Elixir
Raw Normal View History

PROJECT(PARSEDRIVEOPENCHAMS)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
SET(CMAKE_MODULE_PATH "$ENV{VLSISAPD_USER_TOP}/share/cmake/Modules"
"$ENV{VLSISAPD_TOP}/share/cmake/Modules"
)
FIND_PACKAGE(VLSISAPD REQUIRED)
FIND_PACKAGE(Libxml2 REQUIRED)
IF(OPENCHAMS_FOUND)
INCLUDE_DIRECTORIES(${OPENCHAMS_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR})
ADD_EXECUTABLE(driveOpenChams driveOpenChams.cpp)
ADD_EXECUTABLE(parseOpenChams parseOpenChams.cpp)
TARGET_LINK_LIBRARIES(driveOpenChams ${OPENCHAMS_LIBRARY} ${LIBXML2_LIBRARIES})
TARGET_LINK_LIBRARIES(parseOpenChams ${OPENCHAMS_LIBRARY} ${LIBXML2_LIBRARIES})
ENDIF(OPENCHAMS_FOUND)