Skip to content

Commit

Permalink
Add begin/end CMake hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanpasu64 committed Sep 17, 2020
1 parent 7aca045 commit ec03bdb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# CMake configuration
/cmake_user_begin.cmake
/cmake_user_end.cmake

# Driver build process
/Source/drivers/asm/build/log.txt

Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cmake_minimum_required(VERSION 3.10)

set(project "Dn_FamiTracker")
set(exe "Dn_FamiTracker")
include(cmake_user_begin.cmake OPTIONAL)

project(${project})

Expand Down Expand Up @@ -66,3 +67,5 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC" AND CMAKE_BUILD_TYPE MATCHES "Release")
COMPILE_PDB_OUTPUT_DIR ${CMAKE_BINARY_DIR}
)
endif()

include(cmake_user_end.cmake OPTIONAL)
1 change: 1 addition & 0 deletions cmake_user_begin.cmake.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# cmake_user_begin is called before project(). You can set global options.
1 change: 1 addition & 0 deletions cmake_user_end.cmake.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# In cmake_user_end, you can modify individual targets.

0 comments on commit ec03bdb

Please sign in to comment.