From ca2db7652d60ae4f08f66ae2a1613b5a8c9e1984 Mon Sep 17 00:00:00 2001 From: Peter Kolski Date: Wed, 26 Oct 2016 13:55:14 +0200 Subject: [PATCH] Added template for cMake Projects --- example-camera/CMakeLists.txt | 45 +++++++++++++++++++++++++++++++++++ example/CMakeLists.txt | 45 +++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100755 example-camera/CMakeLists.txt create mode 100755 example/CMakeLists.txt diff --git a/example-camera/CMakeLists.txt b/example-camera/CMakeLists.txt new file mode 100755 index 0000000..ac014a7 --- /dev/null +++ b/example-camera/CMakeLists.txt @@ -0,0 +1,45 @@ +#THIS FILE SHOULD BE PUT INTO THE OF PROJECT FOLDER + +# ======================================================== +# ===================== CMake Settings =================== +# ======================================================== +cmake_minimum_required( VERSION 3.3 ) +project( openframeworks ) + +# ======================================================== +# ===================== User Settings ==================== +# ======================================================== +# ---------------------- App name ----------------------- +set( APP_NAME ofApp ) + +# ------------------------ OF Path ----------------------- +# --- If outside the OF stucture, set an absolute OF path +set( OF_DIRECTORY_BY_USER "../../.." ) + +# --------------------- Source Files --------------------- +set( ${APP_NAME}_SOURCE_FILES + src/main.cpp + src/ofApp.cpp ) + + +# ------------------------ AddOns ----------------------- +set( OFX_ADDONS_ACTIVE + # ofxXmlSettings + # ofxOsc + # ofxGui + # ofxNetwork + # ofxVectorGraphics + # ofxThreadedImageLoader + # ofxAssimpModelLoader + # ofxKinect + # ofxOpenCv + # ofxSvg + # ofxEmscripten (untested) + ) + +# ========================================================================= +# ============================== OpenFrameworks =========================== +# ========================================================================= +include( ${OF_DIRECTORY_BY_USER}/addons/ofxCMake/modules/main.cmake ) +# ========================================================================= + diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt new file mode 100755 index 0000000..ac014a7 --- /dev/null +++ b/example/CMakeLists.txt @@ -0,0 +1,45 @@ +#THIS FILE SHOULD BE PUT INTO THE OF PROJECT FOLDER + +# ======================================================== +# ===================== CMake Settings =================== +# ======================================================== +cmake_minimum_required( VERSION 3.3 ) +project( openframeworks ) + +# ======================================================== +# ===================== User Settings ==================== +# ======================================================== +# ---------------------- App name ----------------------- +set( APP_NAME ofApp ) + +# ------------------------ OF Path ----------------------- +# --- If outside the OF stucture, set an absolute OF path +set( OF_DIRECTORY_BY_USER "../../.." ) + +# --------------------- Source Files --------------------- +set( ${APP_NAME}_SOURCE_FILES + src/main.cpp + src/ofApp.cpp ) + + +# ------------------------ AddOns ----------------------- +set( OFX_ADDONS_ACTIVE + # ofxXmlSettings + # ofxOsc + # ofxGui + # ofxNetwork + # ofxVectorGraphics + # ofxThreadedImageLoader + # ofxAssimpModelLoader + # ofxKinect + # ofxOpenCv + # ofxSvg + # ofxEmscripten (untested) + ) + +# ========================================================================= +# ============================== OpenFrameworks =========================== +# ========================================================================= +include( ${OF_DIRECTORY_BY_USER}/addons/ofxCMake/modules/main.cmake ) +# ========================================================================= +