diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f6f540..9b7f10b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,8 +14,8 @@ target_include_directories(${NAME} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}") target_link_libraries(${NAME} Gint::Gint) install(TARGETS ${NAME} - DESTINATION "${FXSDK_COMPILER_INSTALL}") + DESTINATION "${FXSDK_LIB}") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libprof.h" - DESTINATION "${FXSDK_COMPILER_INSTALL}/include") + DESTINATION "${FXSDK_INCLUDE}") install(FILES cmake/FindLibProf.cmake DESTINATION "${FXSDK_CMAKE_MODULE_PATH}") diff --git a/cmake/FindLibProf.cmake b/cmake/FindLibProf.cmake index 52b91b0..918d929 100644 --- a/cmake/FindLibProf.cmake +++ b/cmake/FindLibProf.cmake @@ -3,7 +3,7 @@ include(FindPackageHandleStandardArgs) find_package(Gint 2.2.1 REQUIRED) -find_simple_library("libprof-${FXSDK_PLATFORM}.a" include/libprof.h +find_simple_library("libprof-${FXSDK_PLATFORM}.a" libprof.h "PROF_VERSION" PATH_VAR PROF_PATH VERSION_VAR PROF_VERSION) find_package_handle_standard_args(LibProf