Skip to content

Commit

Permalink
GHI #18 Move cmake helpers out of utils subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Jun 16, 2023
1 parent 547b2ef commit ae97acb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14)

include(cmake/util/PreventInSourceBuilds.cmake)
include(cmake/PreventInSourceBuilds.cmake)

project(
patomic
Expand All @@ -11,8 +11,8 @@ project(
)

# don't change include order, OptionVariables checks if project is top level
include(cmake/util/ProjectIsTopLevel.cmake)
include(cmake/util/OptionVariables.cmake)
include(cmake/ProjectIsTopLevel.cmake)
include(cmake/OptionVariables.cmake)


# ---- Declare Library ----
Expand Down Expand Up @@ -77,7 +77,7 @@ target_compile_features(patomic_patomic PUBLIC c_std_90)
# ---- Install Rules ----

if(NOT CMAKE_SKIP_INSTALL_RULES)
include(cmake/util/InstallRules.cmake)
include(cmake/InstallRules.cmake)
endif()


Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions cmake/util/InstallRules.cmake → cmake/InstallRules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(package patomic)
# copy header files to CMAKE_INSTALL_INCLUDEDIR
install(
DIRECTORY
"${PROJECT_SOURCE_DIR}/include/"
"../include"
"${PROJECT_BINARY_DIR}/include/"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
COMPONENT patomic_Development
Expand All @@ -30,7 +30,7 @@ install(

# copy config file for find_package to find
install(
FILES "${PROJECT_SOURCE_DIR}/cmake/util/InstallConfig.cmake"
FILES "InstallConfig.cmake"
DESTINATION "${PATOMIC_INSTALL_CMAKEDIR}"
RENAME "${package}Config.cmake"
COMPONENT patomic_Development
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ae97acb

Please sign in to comment.