forked from ossia/score
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·48 lines (36 loc) · 1.56 KB
/
CMakeLists.txt
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
47
48
project(iscore)
cmake_minimum_required(VERSION 3.1)
set(APPNAME "i-score")
set(ISCORE_VERSION_MAJOR 1)
set(ISCORE_VERSION_MINOR 0)
set(ISCORE_VERSION_PATCH 0)
set(ISCORE_VERSION_EXTRA a30)
set(ISCORE_CODENAME "Oh, je suis désolée")
set(ISCORE_VERSION "${ISCORE_VERSION_MAJOR}.${ISCORE_VERSION_MINOR}.${ISCORE_VERSION_PATCH}-${ISCORE_VERSION_EXTRA}")
enable_testing()
include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/IScoreConfiguration.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/IScoreFunctions.cmake")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/API")
# too hardcore for jamoma
# if(CMAKE_BUILD_TYPE STREQUAL "Debug")
# if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# add_definitions(-D_GLIBCXX_DEBUG)
# endif()
# endif()
find_package(Qt5 5.3 REQUIRED COMPONENTS Core Widgets Gui Network Xml Svg Test Qml WebSockets OpenGL)
set(3RDPARTY_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/")
set(ISCORE_ROOT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
include_directories("${ISCORE_ROOT_BINARY_DIR}")
include_directories("${3RDPARTY_FOLDER}/variant/include")
add_subdirectory("${3RDPARTY_FOLDER}/QProgressIndicator")
add_subdirectory("${3RDPARTY_FOLDER}/QRecentFilesMenu")
set(ISCORE_PLUGINS_LIST CACHE INTERNAL "List of plugins")
add_subdirectory(base)
#if(INTEGRATION_TESTING)
# include_directories("${CMAKE_CURRENT_SOURCE_DIR}/Tests")
# file(GLOB_RECURSE TESTS_HDRS
# "${CMAKE_CURRENT_SOURCE_DIR}/Tests/*.hpp")
# add_custom_target(MocksHeaders SOURCES ${TESTS_HDRS})
# setup_iscore_tests(Tests/Integration)
#endif()
#include(CTest)