Skip to content

Commit

Permalink
Adds Config.h generated file
Browse files Browse the repository at this point in the history
Gives us the install path and FEXInterpreter locations
  • Loading branch information
Sonicadvance1 committed Mar 24, 2021
1 parent 82c2b49 commit afa869e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ endif()

add_compile_options(-Wall)

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/include/Config.h.in
${CMAKE_BINARY_DIR}/generated/Config.h)

if (BUILD_TESTS)
include(CTest)
enable_testing()
Expand Down
4 changes: 4 additions & 0 deletions include/Config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#pragma once

#define FEX_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
#define FEXINTERPRETER_PATH FEX_INSTALL_PREFIX "/bin/FEXInterpreter"

0 comments on commit afa869e

Please sign in to comment.