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 590c680
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,8 @@ synfig-studio/doc
/ETL/nbproject/
/synfig-core/nbproject/
/synfig-studio/nbproject/

# ------------------------------------------------------------------------
# CLion projects
# ------------------------------------------------------------------------
/.idea
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}/lib/modules)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/modules)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

add_subdirectory(ETL)
include_directories(ETL)
include_directories(${PROJECT_BINARY_DIR}/ETL) # to find the generated etl_profile.h
Expand Down
6 changes: 6 additions & 0 deletions synfig-core/src/synfig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,9 @@ install(
FILE "${PROJECT_NAME}-config.cmake"
DESTINATION "lib/cmake/${PROJECT_NAME}"
)

set_target_properties(synfig
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
)
6 changes: 6 additions & 0 deletions synfig-studio/src/synfigapp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ install(
TARGETS synfigapp
DESTINATION lib
)

set_target_properties(synfigapp
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
)

0 comments on commit 590c680

Please sign in to comment.