-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
55 lines (46 loc) · 1.68 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
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 3.0)
set(APP_VERSION "5.0.5" CACHE STRING "User defined version value")
project(ssifSource VERSION "${APP_VERSION}")
include(utils.cmake)
set(PRODUCT_COMPANY "Vyacheslav Napadovsky")
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_PACKAGE_VENDOR "Copyright (C) ${PRODUCT_COMPANY} 2012-2016")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Utility package for blu-ray files processing")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
install(FILES LICENSE DESTINATION bin)
include_directories(${PROJECT_SOURCE_DIR} thirdparty)
link_directories(${PROJECT_SOURCE_DIR}/thirdparty/avisynth)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
add_definitions(-D_UNICODE -DUNICODE)
configure_msvc_runtime("static")
elseif(MINGW)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions(-D_ASSERT=assert)
endif()
add_subdirectory(thirdparty)
find_package(OpenMP)
if(OPENMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
add_subdirectory(AvsTools)
add_subdirectory(LoadHelper)
if (MSVC)
add_subdirectory(CoreAVCWrapper)
add_subdirectory(FilmTester)
add_subdirectory(ssifSource)
endif()
add_subdirectory(Sub3D)
set(CPACK_GENERATOR NSIS)
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${PROJECT_NAME})
SET(CPACK_NSIS_MODIFY_PATH ON)
include(CPack)
include(CTest)
enable_testing()
add_subdirectory(Tests)