Set up build system
This commit is contained in:
commit
b1023b2fb3
4 changed files with 22 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*~
|
||||
build
|
||||
profile
|
6
CMakeLists.txt
Normal file
6
CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
cmake_minimum_required(VERSION 2.8.3)
|
||||
project(FFD C)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${FFD_SOURCE_DIR})
|
||||
|
||||
add_subdirectory(ffvisd)
|
8
ffvisd/CMakeLists.txt
Normal file
8
ffvisd/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${FFD_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_executable(ffvisd
|
||||
ffvisd.c
|
||||
)
|
||||
target_link_libraries(ffvisd rt)
|
||||
|
||||
install(TARGETS ffvisd RUNTIME DESTINATION sbin)
|
5
ffvisd/ffvisd.c
Normal file
5
ffvisd/ffvisd.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
Reference in a new issue