Skip to content

Commit

Permalink
Merge branch 'master' into calibOdds
Browse files Browse the repository at this point in the history
  • Loading branch information
juanangp authored Apr 20, 2023
2 parents 2be446b + 06ca238 commit 41b49d7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ include(Testing)

# Start compile
include(MacroRootDict)

# Clear the install dir
if (NOT DEFINED INSTALL_CLEARDIR)
set(INSTALL_CLEARDIR ON)
endif ()
if (${INSTALL_CLEARDIR} MATCHES "ON")
install(CODE "execute_process(COMMAND rm -r ${CMAKE_INSTALL_PREFIX})")
endif ()

# Compile and install for each subdir
add_subdirectory(source)

message("")
Expand All @@ -236,14 +246,6 @@ message("")

file(GLOB_RECURSE Headers "${CMAKE_CURRENT_SOURCE_DIR}/source/framework/*.h")

# Clear the install dir
if (NOT DEFINED INSTALL_CLEARDIR)
set(INSTALL_CLEARDIR ON)
endif ()
if (${INSTALL_CLEARDIR} MATCHES "ON")
install(CODE "execute_process(COMMAND rm -r ${CMAKE_INSTALL_PREFIX})")
endif ()

# Install the files of the main framework
install(FILES ${Headers} DESTINATION include)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENCE DESTINATION .)
Expand Down

0 comments on commit 41b49d7

Please sign in to comment.