Skip to content

Commit

Permalink
Merge pull request #199 from BioDataAnalysis/bda_improve_install_target
Browse files Browse the repository at this point in the history
Further improve install target
  • Loading branch information
zeyiwen committed Feb 6, 2020
2 parents c4a70ac + 3804ab8 commit c0f06c2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ set(COMMON_INCLUDES ${PROJECT_SOURCE_DIR}/include ${CMAKE_CURRENT_BINARY_DIR})


set(DATASET_DIR ${PROJECT_SOURCE_DIR}/dataset/)
configure_file(include/thundersvm/config.h.in config.h)
configure_file(include/thundersvm/config.h.in thundersvm/config.h)

set(PROJECT_LIB_NAME ${PROJECT_NAME})
include_directories(${COMMON_INCLUDES})
Expand Down
2 changes: 1 addition & 1 deletion include/thundersvm/clion_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef THUNDERSVM_CLION_CUDA_H
#define THUNDERSVM_CLION_CUDA_H

#include <config.h>
#include <thundersvm/config.h>
#ifdef __JETBRAINS_IDE__
#ifdef USE_CUDA
#include "math.h"
Expand Down
2 changes: 1 addition & 1 deletion include/thundersvm/thundersvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "util/log.h"
#include <string>
#include <vector>
#include <config.h>
#include <thundersvm/config.h>
#include "math.h"
#include "util/common.h"
using std::string;
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_cross_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Created by jiashuai on 17-10-13.
//
#include <gtest/gtest.h>
#include <config.h>
#include <thundersvm/config.h>
#include <thundersvm/model/svc.h>
#include <thundersvm/model/svr.h>
#include <thundersvm/util/metric.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
#include "gtest/gtest.h"
#include "thundersvm/dataset.h"
#include <config.h>
#include <thundersvm/config.h>
TEST(SvmProblemTest, load_dataset){
DataSet dataSet;
dataSet.load_from_file(DATASET_DIR "test_dataset.txt");
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_svr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Created by jiashuai on 17-10-5.
//
#include <gtest/gtest.h>
#include <config.h>
#include <thundersvm/config.h>
#include <thundersvm/model/nusvr.h>
#include <thundersvm/util/metric.h>

Expand Down
6 changes: 5 additions & 1 deletion src/thundersvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@ configure_package_config_file(
${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake
INSTALL_DESTINATION lib/cmake/)

install(TARGETS ${PROJECT_NAME}-train ${PROJECT_NAME}-predict
RUNTIME DESTINATION bin
BUNDLE DESTINATION bin)

install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/thundersvm DESTINATION include/)
install(FILES ${CMAKE_BINARY_DIR}/config.h DESTINATION include/thundersvm/)
install(FILES ${CMAKE_BINARY_DIR}/thundersvm/config.h DESTINATION include/thundersvm/)

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake
Expand Down
2 changes: 1 addition & 1 deletion src/thundersvm/kernel/kernelmatrix_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <thundersvm/syncarray.h>
#include <cusparse.h>
#include "thundersvm/kernel/kernelmatrix_kernel.h"
#include <config.h>
#include <thundersvm/config.h>

namespace svm_kernel {
__global__ void
Expand Down

0 comments on commit c0f06c2

Please sign in to comment.