summaryrefslogtreecommitdiff
path: root/unity-standalone/CMakeLists.txt
blob: f93784b109b39b6c0a6af9e4919f1d1c313568b1 (plain)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 
set(UNITY_SRC ../plugins/unityshell/src) find_package (PkgConfig) set (CFLAGS ${CACHED_UNITY_DEPS_CFLAGS} ${CACHED_UNITY_DEPS_CFLAGS_OTHER} "-DGETTEXT_PACKAGE=\"unity\"" "-I${CMAKE_CURRENT_BINARY_DIR}" ) if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") set (CFLAGS ${CFLAGS} "-fPIC") endif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "armv7l") add_definitions (${CFLAGS}) set (LIBS ${CACHED_UNITY_DEPS_LIBRARIES} ${UNITY_STANDALONE_LADD}) link_libraries (${LIBS}) set (LIB_PATHS ${CACHED_UNITY_DEPS_LIBRARY_DIRS}) link_directories (${CMAKE_BINARY_DIR}/UnityCore ${LIB_PATHS}) include_directories (. .. ../services ../UnityCore ${UNITY_SRC} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) # # Headers & Sources # set (STANDALONE_SOURCES StandaloneUnity.cpp ) add_executable (unity-standalone StandaloneUnity.cpp) add_dependencies (unity-standalone dash-lib launcher-lib panel-lib unity-shared unity-shared-standalone) target_link_libraries (unity-standalone dash-lib launcher-lib panel-lib unity-shared unity-shared-standalone)