Skip to content

Commit

Permalink
Fixing a few more conflicts between this branch and develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jul 1, 2019
1 parent 67e2ae4 commit 4e08ab3
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ For more information, please visit <http://www.openshot.org/>.

################ ADD CMAKE MODULES ##################
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
# Define install paths according to system conventions
include(GNUInstallDirs)

################ PROJECT VERSION ####################
set(PROJECT_VERSION_FULL "0.2.3-dev1")
Expand All @@ -63,34 +61,17 @@ Generating build files for OpenShot
SO/API/ABI Version: ${PROJECT_SO_VERSION}
")

#### Work around a GCC < 9 bug with handling of _Pragma() in macros
#### See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578
if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") AND
(${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.0.0"))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-integrated-cpp")
endif()

########## Configure Version.h header ##############
configure_file(include/OpenShotVersion.h.in include/OpenShotVersion.h @ONLY)
# We'll want that installed later
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/OpenShotVersion.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libopenshot)


############### Set up include paths #################
list(APPEND OPENSHOT_INCLUDE_DIRS
include
include/effects
include/Qt
${CMAKE_CURRENT_BINARY_DIR}/include )
# Define install paths according to system conventions
# XXX: This must be AFTER THE PROJECT() COMMAND w/ languages enabled,
# in order to properly configure CMAKE_INSTALL_LIBDIR path
include(GNUInstallDirs)

########## Configure Version.h header ##############
configure_file(include/OpenShotVersion.h.in include/OpenShotVersion.h @ONLY)
# We'll want that installed later
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/OpenShotVersion.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libopenshot)


############### Set up include paths #################
list(APPEND OPENSHOT_INCLUDE_DIRS
include
Expand All @@ -117,7 +98,4 @@ add_subdirectory(tests)

################### DOCUMENTATION ###################
# Find Doxygen (used for documentation)
include(cmake/Modules/UseDoxygen.cmake)

file(GLOB_RECURSE doc_files ${CMAKE_CURRENT_BINARY_DIR}/doc/html/*.*)
INSTALL(FILES ${doc_files} DESTINATION ${CMAKE_INSTALL_DOCDIR})
include(cmake/Modules/UseDoxygen.cmake)

0 comments on commit 4e08ab3

Please sign in to comment.