Permalink
Browse files

cmake: generate config.h in the project binary directory

  • Loading branch information...
Snaipe committed Jul 13, 2017
1 parent c53a24a commit 46a35c9f101954a525114a8b9e63af7f9550634e
Showing with 2 additions and 4 deletions.
  1. +0 −1 .gitignore
  2. +1 −1 CMakeLists.txt
  3. +1 −2 src/CMakeLists.txt
@@ -19,7 +19,6 @@
CMakeFiles/
!CMakeLists.txt
src/config.h
build
*~
@@ -151,7 +151,7 @@ endif ()
list(REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
include_directories(include src)
include_directories(include src "${PROJECT_BINARY_DIR}/src")
add_subdirectory (src)
add_library (mimick STATIC ${SOURCE_FILES})
@@ -11,7 +11,6 @@ endif ()
set (ASM_FILES src/asm/trampoline-${ASM_ID}${ASM_EXTENSION})
set (SOURCE_FILES ${ASM_FILES}
src/config.h
src/core.c
src/core.h
src/matcher.c
@@ -48,7 +47,7 @@ set (INTERFACE_FILES
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/config.h.in"
"${CMAKE_CURRENT_SOURCE_DIR}/config.h"
"${CMAKE_CURRENT_BINARY_DIR}/config.h"
)
set (SOURCE_FILES ${SOURCE_FILES} PARENT_SCOPE)

0 comments on commit 46a35c9

Please sign in to comment.