Created
December 13, 2019 04:44
-
-
Save gmsanchez/8d57efa235056fc6610ae3384815cb6a to your computer and use it in GitHub Desktop.
ACADO CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Project settings | |
# | |
# Minimum required version of cmake | |
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 ) | |
# Project name and programming languages used | |
PROJECT( MY_COOL_PROJECT CXX ) | |
# ACADO macros | |
# INCLUDE( UseACADO.cmake ) | |
# CMake module(s) path | |
SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR} ) | |
# | |
# Prerequisites | |
# | |
FIND_PACKAGE( ACADO REQUIRED ) | |
# | |
# Include directories | |
# | |
INCLUDE_DIRECTORIES( . ${ACADO_INCLUDE_DIRS} ) | |
# | |
# Build an executable | |
# | |
ADD_EXECUTABLE( code_generation_crane_kul_mhe crane_kul_mhe.cpp ) | |
TARGET_LINK_LIBRARIES( code_generation_crane_kul_mhe ${ACADO_SHARED_LIBRARIES} ) | |
SET_TARGET_PROPERTIES( code_generation_crane_kul_mhe PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | |
ADD_EXECUTABLE( crane_kul_mhe_test crane_kul_mhe_test.cpp ) | |
TARGET_LINK_LIBRARIES( crane_kul_mhe_test ${ACADO_SHARED_LIBRARIES} ) | |
SET_TARGET_PROPERTIES( crane_kul_mhe_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment