Skip to content

Commit

Permalink
Updated CMake script for bin and lib
Browse files Browse the repository at this point in the history
  • Loading branch information
AYESDIE committed Mar 11, 2020
1 parent eaafbcb commit 3130944
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,9 @@ synfig-studio/doc
/ETL/nbproject/
/synfig-core/nbproject/
/synfig-studio/nbproject/

# ------------------------------------------------------------------------
# CLion projects
# ------------------------------------------------------------------------
/.idea
cmake-build-*
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.8)

project(synfig-studio)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin)

add_subdirectory(ETL)
include_directories(ETL)
include_directories(${PROJECT_BINARY_DIR}/ETL) # to find the generated etl_profile.h
Expand Down
3 changes: 3 additions & 0 deletions synfig-core/src/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ set(MODS_ENABLED
# mptr_mplayer # - "This code has vulnerabilities"
)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/lib/modules)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/lib/modules)

## Magick++ support
option(WITH_MAGICPP "Enable Magic++ module (output format support)" OFF)
option(WITHOUT_MAGICPP "Disable Magic++ module (output format support)" OFF)
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/synfig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ install(
install(
TARGETS synfig
EXPORT synfig
LIBRARY DESTINATION lib
LIBRARY DESTINATION ${CMAKE_BINARY_DIR}/output/lib
)

export(
Expand Down
2 changes: 1 addition & 1 deletion synfig-studio/src/synfigapp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ include(vectorizer/CMakeLists.txt)

install(
TARGETS synfigapp
DESTINATION lib
DESTINATION ${CMAKE_BINARY_DIR}/output/lib
)

0 comments on commit 3130944

Please sign in to comment.